diff options
Diffstat (limited to 'spec/models/import_failure_spec.rb')
-rw-r--r-- | spec/models/import_failure_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/models/import_failure_spec.rb b/spec/models/import_failure_spec.rb index 0bdcb6dde31..4c22ed2e10f 100644 --- a/spec/models/import_failure_spec.rb +++ b/spec/models/import_failure_spec.rb @@ -56,7 +56,13 @@ RSpec.describe ImportFailure do it { is_expected.not_to allow_value({ ids: [123] }).for(:external_identifiers) } it 'allows up to 3 fields' do - is_expected.not_to allow_value({ note_id: 234, noteable_id: 345, noteable_type: 'MergeRequest', extra_attribute: 'abc' }).for(:external_identifiers) + is_expected.not_to allow_value({ + note_id: 234, + noteable_id: 345, + noteable_type: 'MergeRequest', + object_type: 'pull_request', + extra_attribute: 'abc' + }).for(:external_identifiers) end end end |