diff options
author | Azul <azul@leap.se> | 2014-05-13 11:01:10 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-13 11:01:10 +0200 |
commit | 84ce597ad0516b92d6633c1f81c03517b5d74004 (patch) | |
tree | a028e3307c5b1c9d3b666d5ae5ef7b08d617e04e /test/support/browser_integration_test.rb | |
parent | 0261e82686ec4fcfc8b633664fadb1dd6d9c8070 (diff) |
minor: use %Q for interpolated string with "
Diffstat (limited to 'test/support/browser_integration_test.rb')
-rw-r--r-- | test/support/browser_integration_test.rb | 3 |
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 |