2764: Reset browser session between Workbench integration tests.
authorBrett Smith <brett@curoverse.com>
Tue, 20 May 2014 19:15:11 +0000 (15:15 -0400)
committerBrett Smith <brett@curoverse.com>
Wed, 21 May 2014 19:16:03 +0000 (15:16 -0400)
Peter and I just debugged an issue where a test was falsely passing
because the session had authorization state in it.  This prevents it
from passing.

apps/workbench/test/integration_helper.rb

index a8788ceb53f6de95cffe0332eadb6dd6d312e808..93455ee782bd1a2d94ca34a51a188f081f2ecdf7 100644 (file)
@@ -25,6 +25,11 @@ 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)