summaryrefslogtreecommitdiff
path: root/spec/models/commit_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-02 14:30:01 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-02 14:30:01 -0800
commitd7df7cf927fa2a9295b8412ddb30342430e71391 (patch)
treee2ffb2b1bf3a98d2e85bf8aceb81548937215d13 /spec/models/commit_spec.rb
parent6c264f4fc4ab5cdb43855421bea51af98333935f (diff)
parent76e531545382b4e4848b4d00502daaa02ac3d488 (diff)
downloadgitlab-ci-d7df7cf927fa2a9295b8412ddb30342430e71391.tar.gz
Merge pull request #556 from jvanbaarsen/rails-upgrade
Upgrade to rails 4.1.9
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r--spec/models/commit_spec.rb4
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