From 512844bea28b17044ddaa13b51b6c0b3842050ee Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 28 Jan 2015 12:32:57 -0800 Subject: tests: add_teardown_hook no longer exists in minitest. replaced with teardown(). --- test/support/browser_integration_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.3