Skip to content

Commit

Permalink
fix 'founds by second attempt' test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mifrill committed Oct 30, 2020
1 parent c14efc4 commit da942c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/thread_safe_uniqueness_record_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ApplicationRecord < ActiveRecord::Base
end.twice
expect do
expect(uniqueness_record.find_or_create!).to eq(model_klass.first)
end.to change { model_klass.count }.from(1).to(2)
end.to not_change { model_klass.count }
end
end
end
Expand Down

0 comments on commit da942c2

Please sign in to comment.