diff options
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 |