Skip to content

Commit 0bd79d1

Browse files
committed
fix jruby
1 parent 1d99080 commit 0bd79d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/unit/attributes_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class SpecialPlant < Plant
8787
plant = Plant.new
8888
expect do
8989
plant.length
90-
end.to raise_error(NoMethodError, /undefined method `length'/)
90+
end.to raise_error(NoMethodError, /undefined method [`']length'/)
9191
end
9292
end
9393

spec/unit/rspec_matchers_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,13 @@
208208
it "should have a nice error message for failing should" do
209209
expect {
210210
expect(@view_spec).to map_reduce(@docs).with_options(:group => false).to({"key" => nil, "value" => 9})
211-
}.to raise_error('Expected to map/reduce to [{"key"=>nil, "value"=>9}] but got [{"key"=>nil, "value"=>8}].')
211+
}.to raise_error(%r{Expected to map/reduce to \[{"key"\s*=>\s*nil, "value"\s*=>\s*9}\] but got \[{"key"\s*=>\s*nil, "value"\s*=>\s*8}\].})
212212
end
213213

214214
it "should have a nice error message for failing should not" do
215215
expect {
216216
expect(@view_spec).not_to map_reduce(@docs).with_options(:group => false).to({"key" => nil, "value" => 8})
217-
}.to raise_error('Expected not to map/reduce to [{"key"=>nil, "value"=>8}] but did.')
217+
}.to raise_error(%r{Expected not to map/reduce to \[{"key"\s*=>\s*nil, "value"\s*=>\s*8}\] but did.})
218218
end
219219
end
220220

0 commit comments

Comments
 (0)