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
9b75279162
This commit is contained in:
parent
05a7fcbdf7
commit
813b8aad24
|
@ -158,7 +158,7 @@ describe InternalId do
|
|||
before do
|
||||
described_class.reset_column_information
|
||||
# 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
|
||||
|
||||
it 'does not reset any of the iids' do
|
||||
|
|
Loading…
Reference in New Issue