Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
simkim committed Nov 3, 2022
1 parent 7f7bddb commit 097851e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/relation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def self.active
expect(RelationModel.where(active: true).adult).to match_array([m3, m4])
end

it "should be thread safe" do
it "should be scoped only in current thread" do
m1 = RelationModel.create!(active: true)
m2 = RelationModel.create!(active: false)
RelationModel.active.scoping do
Expand Down

0 comments on commit 097851e

Please sign in to comment.