Skip to content

Commit

Permalink
Fix audited_spec.rb.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagocassio committed Apr 19, 2023
1 parent 950ff2a commit 0960dc7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/audited_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
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

0 comments on commit 0960dc7

Please sign in to comment.