Permalink
Browse files

this time, with wip scenario showing mis-behaviour of handing errors …

…in before(:all)
  • Loading branch information...
dchelimsky committed May 15, 2010
1 parent d5e84b1 commit 234d7632c71c39d1a31429a6483200812395b877
Showing with 6 additions and 5 deletions.
  1. +6 −5 features/hooks/before_and_after_hooks.feature
@@ -213,18 +213,19 @@ Feature: before and after hooks
Then I should see "1 example, 1 failure"
And I should see "this error"
- Scenario: exception in before(:each) is captured and reported as failure
- Given a file named "error_in_before_each_spec.rb" with:
+@wip
+ Scenario: exception in before(:all) is captured and reported as failure
+ Given a file named "error_in_before_all_spec.rb" with:
"""
- describe "error in before(:each)" do
- before(:each) do
+ describe "error in before(:all)" do
+ before(:all) do
raise "this error"
end
it "is reported as failure" do
end
end
"""
- When I run "rspec error_in_before_each_spec.rb"
+ When I run "rspec error_in_before_all_spec.rb"
Then I should see "1 example, 1 failure"
And I should see "this error"

0 comments on commit 234d763

Please sign in to comment.