summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-28 15:15:59 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-28 15:15:59 +0200
commit40a25732e9c36b50ee7682b4b0ab4e323343ea65 (patch)
tree04453150903e9c23cd7a86d7428b60e10411e5cf /spec/models
parent83883f426e5d00d56db086bceb4d570ee7a3ebe6 (diff)
downloadgitlab-ce-40a25732e9c36b50ee7682b4b0ab4e323343ea65.tar.gz
Reorder asserts is ci commits specs for consistency
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/commit_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/commit_spec.rb b/spec/models/ci/commit_spec.rb
index 6055c142e21..a747aa08447 100644
--- a/spec/models/ci/commit_spec.rb
+++ b/spec/models/ci/commit_spec.rb
@@ -169,8 +169,8 @@ describe Ci::Commit, models: true do
expect(commit.builds.pluck(:status)).to contain_exactly('success', 'pending')
commit.builds.running_or_pending.each(&:success)
- expect(commit.builds.pluck(:status)).to contain_exactly('success', 'success', 'pending')
expect(commit.builds.pluck(:name)).to contain_exactly('build', 'test', 'deploy')
+ expect(commit.builds.pluck(:status)).to contain_exactly('success', 'success', 'pending')
commit.builds.running_or_pending.each(&:success)
expect(commit.builds.pluck(:name)).to contain_exactly('build', 'test', 'deploy', 'cleanup')