Commit 567ab58d authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Avoid transiency by not predicting persistency order

parent c1df6a44
......@@ -77,8 +77,8 @@ describe IssueLinks::CreateService, service: true do
it 'creates relationships' do
expect { subject }.to change(IssueLink, :count).from(0).to(2)
expect(IssueLink.first).to have_attributes(source: issue, target: issue_a)
expect(IssueLink.last).to have_attributes(source: issue, target: another_project_issue)
expect(IssueLink.find_by(target: issue_a)).to have_attributes(source: issue)
expect(IssueLink.find_by(target: another_project_issue)).to have_attributes(source: issue)
end
it 'returns success message with Issue reference' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment