diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-16 17:19:05 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-16 17:20:00 +0200 |
commit | 7ea48ec54689cc262cc036fa65234a231a39c7e8 (patch) | |
tree | 18fb91b14c02032170c304b9222398716ddd7a07 /spec/models/ci | |
parent | 912f470497129b0d8759b18700299e38535e7bec (diff) | |
download | gitlab-ce-7ea48ec54689cc262cc036fa65234a231a39c7e8.tar.gz |
Fix CI tests
Diffstat (limited to 'spec/models/ci')
-rw-r--r-- | spec/models/ci/project_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/project_spec.rb b/spec/models/ci/project_spec.rb index a6fd6f27942..89dc906e845 100644 --- a/spec/models/ci/project_spec.rb +++ b/spec/models/ci/project_spec.rb @@ -67,7 +67,7 @@ describe Ci::Project do it 'returns ordered list of commits' do commit1 = FactoryGirl.create :ci_commit, committed_at: 1.hour.ago, project: project commit2 = FactoryGirl.create :ci_commit, committed_at: 2.hour.ago, project: project - project.commits.should == [commit2, commit1] + expect(project.commits).to eq([commit2, commit1]) end it 'returns commits ordered by committed_at and id, with nulls last' do @@ -75,7 +75,7 @@ describe Ci::Project do commit2 = FactoryGirl.create :ci_commit, committed_at: nil, project: project commit3 = FactoryGirl.create :ci_commit, committed_at: 2.hour.ago, project: project commit4 = FactoryGirl.create :ci_commit, committed_at: nil, project: project - project.commits.should == [commit2, commit4, commit3, commit1] + expect(project.commits).to eq([commit2, commit4, commit3, commit1]) end end |