2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-12-19 02:00:22 -05:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
describe SecureSession do
|
|
|
|
it "operates correctly" do
|
|
|
|
s = SecureSession.new("abc")
|
|
|
|
|
|
|
|
s["hello"] = "world"
|
|
|
|
s["foo"] = "bar"
|
|
|
|
expect(s["hello"]).to eq("world")
|
|
|
|
expect(s["foo"]).to eq("bar")
|
|
|
|
|
|
|
|
s["hello"] = nil
|
|
|
|
expect(s["hello"]).to eq(nil)
|
|
|
|
end
|
|
|
|
end
|