Use enum-generated scopes/queries for BulkImport
(#29975)
This commit is contained in:
parent
630572323f
commit
11e0049b08
6 changed files with 9 additions and 9 deletions
|
@ -281,7 +281,7 @@ RSpec.describe Form::Import do
|
|||
end
|
||||
|
||||
it 'defaults to unconfirmed true' do
|
||||
expect(bulk_import.unconfirmed?).to be true
|
||||
expect(bulk_import.state_unconfirmed?).to be true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -291,7 +291,7 @@ RSpec.describe BulkImportService do
|
|||
|
||||
it 'marks the import as finished' do
|
||||
subject.call(import)
|
||||
expect(import.reload.finished?).to be true
|
||||
expect(import.reload.state_finished?).to be true
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -319,7 +319,7 @@ RSpec.describe BulkImportService do
|
|||
|
||||
it 'marks the import as finished' do
|
||||
subject.call(import)
|
||||
expect(import.reload.finished?).to be true
|
||||
expect(import.reload.state_finished?).to be true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue