summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/support/browser_integration_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/support/browser_integration_test.rb b/test/support/browser_integration_test.rb
index c01b8a1..1e2aa51 100644
--- a/test/support/browser_integration_test.rb
+++ b/test/support/browser_integration_test.rb
@@ -71,9 +71,9 @@ class BrowserIntegrationTest < ActionDispatch::IntegrationTest
end
end
- add_teardown_hook do |testcase|
- unless testcase.passed?
- testcase.save_state
+ teardown do
+ unless self.passed?
+ self.save_state
end
end