spec/audited_spec.rb in audited-5.3.2 vs spec/audited_spec.rb in audited-5.3.3

- old
+ new

@@ -1,18 +1,14 @@ require "spec_helper" describe Audited do describe "#store" do describe "maintains state of store" do - let(:current_user) { "current_user" } + let(:current_user) { RequestStore.store[:audited_store] } before { Audited.store[:current_user] = current_user } - it "when executed without fibers" do + it "checks store is not nil" 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