From fa6b0b65fb71b66e36f982f4f25e9751672d0834 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Tue, 20 May 2014 15:15:11 -0400 Subject: [PATCH] 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. --- apps/workbench/test/integration_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.30.2