diff options
author | Azul <azul@riseup.net> | 2016-05-12 14:30:23 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-12 14:30:23 +0200 |
commit | aeb0f39362b2195d4aec418349538b5f8443f693 (patch) | |
tree | 66f599cac18e14e8fdc278ac080a48e35ffd68d2 /vendor/gems/couchrest_session_store/test/session_document_test.rb | |
parent | 90e2145e33913ff59b99b81a660cb730e3c7efd8 (diff) |
minor: no need to vendor couchrest_session_store
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 |