summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/support/browser_integration_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/support/browser_integration_test.rb b/test/support/browser_integration_test.rb
index dbd56a9..1c872ff 100644
--- a/test/support/browser_integration_test.rb
+++ b/test/support/browser_integration_test.rb
@@ -57,8 +57,7 @@ class BrowserIntegrationTest < ActionDispatch::IntegrationTest
def login(user = nil)
@user ||= user ||= FactoryGirl.create(:user)
token = Token.create user_id: user.id
- page.driver.add_header "Authorization",
- 'Token token="' + token.to_s + '"'
+ page.driver.add_header "Authorization", %Q(Token token="#{token}")
visit '/'
end