summaryrefslogtreecommitdiff
path: root/vendor/gems/couchrest_session_store/test/session_store_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gems/couchrest_session_store/test/session_store_test.rb')
-rw-r--r--vendor/gems/couchrest_session_store/test/session_store_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/gems/couchrest_session_store/test/session_store_test.rb b/vendor/gems/couchrest_session_store/test/session_store_test.rb
index 4fbf30b..5949ae6 100644
--- a/vendor/gems/couchrest_session_store/test/session_store_test.rb
+++ b/vendor/gems/couchrest_session_store/test/session_store_test.rb
@@ -64,10 +64,10 @@ class SessionStoreTest < MiniTest::Test
def test_stored_and_not_expired_yet
sid, session = expiring_session
- doc = CouchRest::Session::Document.fetch(sid)
- expires = doc.send :expires
+ couchrest_session = CouchRest::Session.fetch(sid)
+ expires = couchrest_session.send :expires
assert expires
- assert !doc.expired?
+ assert !couchrest_session.expired?
assert (expires - Time.now) > 0, "Exiry should be in the future"
assert (expires - Time.now) <= 300, "Should expire after 300 seconds - not more"
assert_equal [sid, session], store.send(:get_session, env, sid)