diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-16 12:08:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-16 12:08:13 +0300 |
commit | d27c7afb790906070b9e57aa59a655ecd86205f9 (patch) | |
tree | cb3cfc94a14b06e54a16004f1d03835da0b3c07e /spec/support/services | |
parent | a9a25b9e726c45bed9146661825e9b849f79d6a9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/services')
-rw-r--r-- | spec/support/services/issuable_import_csv_service_shared_examples.rb | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/spec/support/services/issuable_import_csv_service_shared_examples.rb b/spec/support/services/issuable_import_csv_service_shared_examples.rb index f68750bec32..07118198969 100644 --- a/spec/support/services/issuable_import_csv_service_shared_examples.rb +++ b/spec/support/services/issuable_import_csv_service_shared_examples.rb @@ -67,10 +67,7 @@ RSpec.shared_examples 'issuable import csv service' do |issuable_type| it 'correctly sets the issuable attributes' do expect { subject }.to change { issuables.count }.by 4 - expect(issuables.reload.last).to have_attributes( - title: 'Test Title', - description: 'Test Description' - ) + expect(issuables.reload).to include(have_attributes({ title: 'Test Title', description: 'Test Description' })) end it_behaves_like 'importer with email notification' @@ -89,10 +86,7 @@ RSpec.shared_examples 'issuable import csv service' do |issuable_type| it 'correctly sets the issuable attributes' do expect { subject }.to change { issuables.count }.by 3 - expect(issuables.reload.last).to have_attributes( - title: 'Title with quote"', - description: 'Description' - ) + expect(issuables.reload).to include(have_attributes(title: 'Title with quote"', description: 'Description')) end it_behaves_like 'importer with email notification' @@ -111,10 +105,7 @@ RSpec.shared_examples 'issuable import csv service' do |issuable_type| it 'correctly sets the issuable attributes' do expect { subject }.to change { issuables.count }.by 2 - expect(issuables.reload.last).to have_attributes( - title: 'Hello', - description: 'World' - ) + expect(issuables.reload).to include(have_attributes(title: 'Hello', description: 'World')) end it_behaves_like 'importer with email notification' @@ -133,10 +124,7 @@ RSpec.shared_examples 'issuable import csv service' do |issuable_type| it 'correctly sets the issuable attributes' do expect { subject }.to change { issuables.count }.by 3 - expect(issuables.reload.last).to have_attributes( - title: 'Hello', - description: 'World' - ) + expect(issuables.reload).to include(have_attributes(title: 'Hello', description: 'World')) end it_behaves_like 'importer with email notification' |