summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-01-28 12:32:57 -0800
committerelijah <elijah@riseup.net>2015-01-28 12:32:57 -0800
commit512844bea28b17044ddaa13b51b6c0b3842050ee (patch)
treee52ad45b5ed749fbf0b6fe2e497b71a9e5a45ce5 /test
parenteebe08aba43302b080c7b534a746f0f30359f370 (diff)
tests: add_teardown_hook no longer exists in minitest. replaced with teardown().
Diffstat (limited to 'test')
-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