mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 19:03:13 +08:00
17 lines
333 B
Ruby
17 lines
333 B
Ruby
|
require 'rails_helper'
|
||
|
require_dependency 'secure_session'
|
||
|
|
||
|
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
|