Sha256: 2988e6ae2c2acacaab06352a2fb591f03214b04dad887f7993b235a77eb67be8
Contents?: true
Size: 488 Bytes
Versions: 10
Compression:
Stored size: 488 Bytes
Contents
require "spec_helper" describe Audited do describe "#store" do describe "maintains state of store" do let(:current_user) { "current_user" } before { Audited.store[:current_user] = current_user } it "when executed without fibers" do expect(Audited.store[:current_user]).to eq(current_user) end it "when executed with Fibers" do Fiber.new { expect(Audited.store[:current_user]).to eq(current_user) }.resume end end end end
Version data entries
10 entries across 10 versions & 2 rubygems