Sha256: 1506b3422dfde929733c245116ea0da4f096b4b47f5a07c42d4367a7b25b19ae
Contents?: true
Size: 547 Bytes
Versions: 12
Compression:
Stored size: 547 Bytes
Contents
require 'minitest/autorun' require 'rack/session/abstract/id' describe Rack::Session::Abstract::SessionHash do attr_reader :hash def setup super store = Class.new do def load_session(req) ["id", {foo: :bar, baz: :qux}] end def session_exists?(req) true end end @hash = Rack::Session::Abstract::SessionHash.new(store.new, nil) end it "returns keys" do assert_equal ["foo", "baz"], hash.keys end it "returns values" do assert_equal [:bar, :qux], hash.values end end
Version data entries
12 entries across 12 versions & 5 rubygems