diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-03-03 13:34:56 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-03-03 13:34:56 +0200 |
commit | 16f31cebd1679a13f210218931c33d6283ea6e02 (patch) | |
tree | 2ee253e9066141d6c4212f818dd5c44578636391 /spec/models/commit_spec.rb | |
parent | e3b2180e57e677ab9e263200645a32d24b5147eb (diff) | |
parent | d7df7cf927fa2a9295b8412ddb30342430e71391 (diff) | |
download | gitlab-ci-16f31cebd1679a13f210218931c33d6283ea6e02.tar.gz |
Merge branch 'master' of github.com:gitlabhq/gitlab-ci
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index 79cec87..40ccbe4 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -56,9 +56,9 @@ describe Commit do end it "creates new build" do - commit.builds.count.should == 2 + expect(commit.builds.count(:all)).to eq 2 commit.retry - commit.builds.count.should == 3 + expect(commit.builds.count(:all)).to eq 3 end end |