From: Brett Smith Date: Tue, 20 May 2014 19:15:11 +0000 (-0400) Subject: 2764: Reset browser session between Workbench integration tests. X-Git-Tag: 1.1.0~2612^2~1^2^2~6 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/fa6b0b65fb71b66e36f982f4f25e9751672d0834 2764: Reset browser session between Workbench integration tests. 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. --- diff --git a/apps/workbench/test/integration_helper.rb b/apps/workbench/test/integration_helper.rb index a8788ceb53..93455ee782 100644 --- a/apps/workbench/test/integration_helper.rb +++ b/apps/workbench/test/integration_helper.rb @@ -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)