Skip to content

Commit 8e05413

Browse files
committed
Fix Ruby 1.8.7 warning about regex syntax.
Noticed this when running against Ruby 1.8.7, there were two repeated warnings based on improper escaped brackets: - spec/rspec/rails/matchers/route_to_spec.rb:114: > warning: regexp has invalid interval - spec/rspec/rails/matchers/route_to_spec.rb:114: > warning: regexp has `}' without escape
1 parent c7f3e52 commit 8e05413

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rspec/rails/matchers/route_to_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ def assert_recognizes(*)
109109
context "with should_not" do
110110
context "when assert_recognizes passes" do
111111
it "fails with custom message" do
112-
expect do
112+
expect{
113113
expect({:get => "path"}).not_to route_to("these" => "options")
114-
end.to raise_error(/expected {:get=>"path"} not to route to {"these"=>"options"}/)
114+
}.to raise_error(/expected \{:get=>"path"\} not to route to \{"these"=>"options"\}/)
115115
end
116116
end
117117

0 commit comments

Comments
 (0)