From 097851edf1b95130ccb5e7647a6f6460c9b74fb6 Mon Sep 17 00:00:00 2001 From: Gauthier Monserand Date: Thu, 3 Nov 2022 16:32:47 +0100 Subject: [PATCH] cleanup --- spec/relation_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/relation_spec.rb b/spec/relation_spec.rb index 325f6ff7..cb41bf53 100644 --- a/spec/relation_spec.rb +++ b/spec/relation_spec.rb @@ -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