Permalink
Browse files

dot placement matters

  • Loading branch information...
1 parent d9154b6 commit 6528f3ff3a7c68c6348d6e85af08af83fe35c51b @dchelimsky dchelimsky committed Feb 5, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 features/built_in_matchers/expect_error.feature
@@ -44,8 +44,8 @@ Feature: raise_error matcher
"""
describe "matching error message with string" do
it "matches the error message" do
- expect { raise StandardError, 'this message exactly'}
- .to raise_error(StandardError, 'this message exactly')
+ expect { raise StandardError, 'this message exactly'}.
+ to raise_error(StandardError, 'this message exactly')
end
end
"""
@@ -57,8 +57,8 @@ Feature: raise_error matcher
"""
describe "matching error message with regex" do
it "matches the error message" do
- expect { raise StandardError, "my message" }
- .to raise_error(StandardError, /my mess/)
+ expect { raise StandardError, "my message" }.
+ to raise_error(StandardError, /my mess/)
end
end
"""
@@ -96,8 +96,8 @@ Feature: raise_error matcher
"""
describe Object, "#public_instance_methods" do
it "does not raise" do
- expect { Object.public_instance_methods }
- .to_not raise_error(NameError)
+ expect { Object.public_instance_methods }.
+ to_not raise_error(NameError)
end
end
"""

0 comments on commit 6528f3f

Please sign in to comment.