diff options
author | Nick Thomas <nick@gitlab.com> | 2018-01-29 16:18:31 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-01-29 16:18:31 +0000 |
commit | 7b276a10764f629393ddac1fbd237d2efb69dfd6 (patch) | |
tree | ce4445e24d5938337473887145007f8338707ab7 | |
parent | 55f28ebbf64d98389cb5f0491c031af5591b9f5e (diff) | |
download | gitlab-ce-7b276a10764f629393ddac1fbd237d2efb69dfd6.tar.gz |
Fix an order dependency in a spec
-rw-r--r-- | spec/models/commit_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index f8a98b43e46..959383ff0b7 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -228,7 +228,7 @@ eos it { expect(data).to be_a(Hash) } it { expect(data[:message]).to include('adds bar folder and branch-test text file to check Repository merged_to_root_ref method') } it { expect(data[:timestamp]).to eq('2016-09-27T14:37:46Z') } - it { expect(data[:added]).to eq(["bar/branch-test.txt"]) } + it { expect(data[:added]).to contain_exactly("bar/branch-test.txt") } it { expect(data[:modified]).to eq([]) } it { expect(data[:removed]).to eq([]) } end @@ -532,8 +532,8 @@ eos let(:commit2) { merge_request1.merge_request_diff.commits.first } it 'returns merge_requests that introduced that commit' do - expect(commit1.merge_requests).to eq([merge_request1, merge_request2]) - expect(commit2.merge_requests).to eq([merge_request1]) + expect(commit1.merge_requests).to contain_exactly(merge_request1, merge_request2) + expect(commit2.merge_requests).to contain_exactly(merge_request1) end end end |