Permalink
Browse files

Removed describe blocks to match other scenarios, all in one

  • Loading branch information...
1 parent 13e0470 commit dc66f44f47f7a6bfd982cfe9f5616ba478f062ae @jamesalmond committed Jan 31, 2011
Showing with 3 additions and 8 deletions.
  1. +3 −8 features/built_in_matchers/expect_error.feature
View
11 features/built_in_matchers/expect_error.feature
@@ -49,11 +49,8 @@ Feature: expect error
it "should match the error message" do
expect{ raise StandardError, 'my message'}.to raise_error(StandardError, 'my message')
end
- end
-
- #deliberate failure
- describe "unmatching error message" do
- it "should match error" do
+ #deliberate failure
+ it "should match the error message" do
expect{ raise StandardError, 'another message'}.to raise_error(StandardError, 'my message')
end
end
@@ -70,10 +67,8 @@ Feature: expect error
it "should not match errors with a different message" do
expect{raise StandardError, 'my message'}.to_not raise_error(StandardError, "another message")
end
- end
- #deliberate failure
- describe "mathcing no error with a message" do
+ #deliberate failure
it "should not match errors with a different message" do
expect{raise StandardError, "my message"}.to_not raise_error(StandardError, 'my message')
end

0 comments on commit dc66f44

Please sign in to comment.