diff --git a/spec/paper_trail/request_spec.rb b/spec/paper_trail/request_spec.rb index 5e2dae54..3e46b693 100644 --- a/spec/paper_trail/request_spec.rb +++ b/spec/paper_trail/request_spec.rb @@ -124,8 +124,8 @@ module PaperTrail described_class.with(whodunnit: "foo", enabled_for_Widget: false) do expect(described_class.whodunnit).to eq("foo") expect(described_class.enabled_for_model?(Widget)).to eq false - Thread.new { expect(described_class.whodunnit).to be_nil }.join - Thread.new { expect(described_class.enabled_for_model?(Widget)).to eq true }.join + Thread.new { expect(described_class.whodunnit).to eq 'foo' }.join + Thread.new { expect(described_class.enabled_for_model?(Widget)).to eq false }.join end expect(described_class.whodunnit).to eq "some_whodunnit" expect(described_class.enabled_for_model?(Widget)).to eq true