3661: tentative implementation of Capybara "best practice" of using that class's...
authorPhil Hodgson <bitbucket@philhodgson.net>
Thu, 11 Sep 2014 13:37:07 +0000 (09:37 -0400)
committerPhil Hodgson <bitbucket@philhodgson.net>
Thu, 11 Sep 2014 13:37:07 +0000 (09:37 -0400)
apps/workbench/test/integration_helper.rb

index 81ea67c3c5c4bd8925e650501a85a258d6dff855..febcfcfec0eb2c87122ba00594dfffc9a3958d37 100644 (file)
@@ -25,11 +25,6 @@ class ActionDispatch::IntegrationTest
 
   @@API_AUTHS = self.api_fixture('api_client_authorizations')
 
-  def setup
-    reset_session!
-    super
-  end
-
   def page_with_token(token, path='/')
     # Generate a page path with an embedded API token.
     # Typical usage: visit page_with_token('token_name', page)
@@ -74,5 +69,6 @@ class ActionDispatch::IntegrationTest
     if Capybara.current_driver == :selenium
       page.execute_script("window.localStorage.clear()")
     end
+    Capybara.reset_sessions!
   end
 end