Skip to content
This repository
Browse code

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

…in before(:all)
  • Loading branch information...
commit 234d7632c71c39d1a31429a6483200812395b877 1 parent d5e84b1
David Chelimsky authored May 15, 2010
11  features/hooks/before_and_after_hooks.feature
@@ -213,11 +213,12 @@ Feature: before and after hooks
213 213
     Then I should see "1 example, 1 failure"
214 214
     And I should see "this error"
215 215
 
216  
-  Scenario: exception in before(:each) is captured and reported as failure
217  
-    Given a file named "error_in_before_each_spec.rb" with:
  216
+@wip
  217
+  Scenario: exception in before(:all) is captured and reported as failure
  218
+    Given a file named "error_in_before_all_spec.rb" with:
218 219
       """
219  
-      describe "error in before(:each)" do
220  
-        before(:each) do
  220
+      describe "error in before(:all)" do
  221
+        before(:all) do
221 222
           raise "this error"
222 223
         end
223 224
 
@@ -225,6 +226,6 @@ Feature: before and after hooks
225 226
         end
226 227
       end
227 228
       """
228  
-    When I run "rspec error_in_before_each_spec.rb"
  229
+    When I run "rspec error_in_before_all_spec.rb"
229 230
     Then I should see "1 example, 1 failure"
230 231
     And I should see "this error"

0 notes on commit 234d763

Please sign in to comment.
Something went wrong with that request. Please try again.