summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-13 11:01:10 +0200
committerAzul <azul@leap.se>2014-05-13 11:01:10 +0200
commit84ce597ad0516b92d6633c1f81c03517b5d74004 (patch)
treea028e3307c5b1c9d3b666d5ae5ef7b08d617e04e
parent0261e82686ec4fcfc8b633664fadb1dd6d9c8070 (diff)
minor: use %Q for interpolated string with "
-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