require "spec_helper" describe VelocityAudited do describe "#store" do describe "maintains state of store" do let(:current_user) { "current_user" } before { VelocityAudited.store[:current_user] = current_user } it "when executed without fibers" do expect(VelocityAudited.store[:current_user]).to eq(current_user) end it "when executed with Fibers" do Fiber.new { expect(VelocityAudited.store[:current_user]).to eq(current_user) }.resume end end end end