Commit 813b8aad authored by Jan Provaznik's avatar Jan Provaznik Committed by Stan Hu

Fix failing spec/models/internal_id_spec.rb spec

The spec is too strict about how many `current_version` should be
called - if the spec is called separately, it's called 3 times, if
all specs run it's called twice.

This is similar to the change done in
9b752791
parent 05a7fcbd
...@@ -158,7 +158,7 @@ describe InternalId do ...@@ -158,7 +158,7 @@ describe InternalId do
before do before do
described_class.reset_column_information described_class.reset_column_information
# Project factory will also call the current_version # Project factory will also call the current_version
expect(ActiveRecord::Migrator).to receive(:current_version).twice.and_return(InternalId::REQUIRED_SCHEMA_VERSION - 1) expect(ActiveRecord::Migrator).to receive(:current_version).at_least(:once).and_return(InternalId::REQUIRED_SCHEMA_VERSION - 1)
end end
it 'does not reset any of the iids' do it 'does not reset any of the iids' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment