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 d41a696 commit 7f7bddb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/relation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ def self.adult
def self.active
where(active: true)
end

def self.test(&block)
yield
end
end

describe CouchbaseOrm::Relation do
Expand Down Expand Up @@ -324,8 +320,8 @@ def self.test(&block)
end

it "should be thread safe" do
m1 = RelationModel.create!(age: 10, active: true)
m2 = RelationModel.create!(age: 20, active: false)
m1 = RelationModel.create!(active: true)
m2 = RelationModel.create!(active: false)
RelationModel.active.scoping do
expect(RelationModel.all).to match_array([m1])
Thread.start do
Expand Down

0 comments on commit 7f7bddb

Please sign in to comment.