diff options
Diffstat (limited to 'vendor/gems/couchrest_session_store/test/session_document_test.rb')
-rw-r--r-- | vendor/gems/couchrest_session_store/test/session_document_test.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vendor/gems/couchrest_session_store/test/session_document_test.rb b/vendor/gems/couchrest_session_store/test/session_document_test.rb deleted file mode 100644 index 43fbbca..0000000 --- a/vendor/gems/couchrest_session_store/test/session_document_test.rb +++ /dev/null @@ -1,27 +0,0 @@ -require_relative 'test_helper' - -class SessionDocumentTest < MiniTest::Test - - def test_storing_session - sid = '1234' - session = {'a' => 'b'} - options = {} - couchrest_session = CouchRest::Session.build_or_update(sid, session, options) - couchrest_session.save - couchrest_session.fetch(sid) - assert_equal session, couchrest_session.to_session - end - - def test_storing_session_with_conflict - sid = '1234' - session = {'a' => 'b'} - options = {} - cr_session = CouchRest::Session.build_or_update(sid, session, options) - cr_session2 = CouchRest::Session.build_or_update(sid, session, options) - cr_session.save - cr_session2.save - cr_session2.fetch(sid) - assert_equal session, cr_session2.to_session - end - -end |