summaryrefslogtreecommitdiff
path: root/spec/support/authentication.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-11-15 10:34:55 -0700
committermo khan <mo@mokhan.ca>2014-11-15 10:34:55 -0700
commitacb6b46a6127c1e6ce99eb7777728e98f1b02060 (patch)
treeffd95d1f931ade12e87e22cf6f6139c6fd5f2209 /spec/support/authentication.rb
parent2059e8bd25d0ad79aaa1099314eddda5cd8c7f4e (diff)
generate unique session key instead of id.HEADmaster
Diffstat (limited to 'spec/support/authentication.rb')
-rw-r--r--spec/support/authentication.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/authentication.rb b/spec/support/authentication.rb
index 18c4f31..47a7dc6 100644
--- a/spec/support/authentication.rb
+++ b/spec/support/authentication.rb
@@ -1,6 +1,6 @@
module HttpAuthentication
def http_login(user, password = 'password')
user_session = create(:session, user: user)
- cookies.signed[:raphael] = user_session.id
+ cookies.signed[:raphael] = user_session.key
end
end