Skip to content
代码片段 群组 项目
提交 66530638 编辑于 作者: Francisco Javier López's avatar Francisco Javier López
浏览文件

Merge branch 'alberts-fix-flaky-import-csv-service-spec' into 'master'

Expect attributes in non-order dependent manner

See merge request gitlab-org/gitlab!66302
No related branches found
No related tags found
无相关合并请求
...@@ -67,10 +67,7 @@ ...@@ -67,10 +67,7 @@
it 'correctly sets the issuable attributes' do it 'correctly sets the issuable attributes' do
expect { subject }.to change { issuables.count }.by 4 expect { subject }.to change { issuables.count }.by 4
expect(issuables.reload.last).to have_attributes( expect(issuables.reload).to include(have_attributes({ title: 'Test Title', description: 'Test Description' }))
title: 'Test Title',
description: 'Test Description'
)
end end
it_behaves_like 'importer with email notification' it_behaves_like 'importer with email notification'
...@@ -89,10 +86,7 @@ ...@@ -89,10 +86,7 @@
it 'correctly sets the issuable attributes' do it 'correctly sets the issuable attributes' do
expect { subject }.to change { issuables.count }.by 3 expect { subject }.to change { issuables.count }.by 3
expect(issuables.reload.last).to have_attributes( expect(issuables.reload).to include(have_attributes(title: 'Title with quote"', description: 'Description'))
title: 'Title with quote"',
description: 'Description'
)
end end
it_behaves_like 'importer with email notification' it_behaves_like 'importer with email notification'
...@@ -111,10 +105,7 @@ ...@@ -111,10 +105,7 @@
it 'correctly sets the issuable attributes' do it 'correctly sets the issuable attributes' do
expect { subject }.to change { issuables.count }.by 2 expect { subject }.to change { issuables.count }.by 2
expect(issuables.reload.last).to have_attributes( expect(issuables.reload).to include(have_attributes(title: 'Hello', description: 'World'))
title: 'Hello',
description: 'World'
)
end end
it_behaves_like 'importer with email notification' it_behaves_like 'importer with email notification'
...@@ -133,10 +124,7 @@ ...@@ -133,10 +124,7 @@
it 'correctly sets the issuable attributes' do it 'correctly sets the issuable attributes' do
expect { subject }.to change { issuables.count }.by 3 expect { subject }.to change { issuables.count }.by 3
expect(issuables.reload.last).to have_attributes( expect(issuables.reload).to include(have_attributes(title: 'Hello', description: 'World'))
title: 'Hello',
description: 'World'
)
end end
it_behaves_like 'importer with email notification' it_behaves_like 'importer with email notification'
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册