summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/models/build_spec.rb4
-rw-r--r--spec/models/commit_spec.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb
index f8b44e1..f8db78d 100644
--- a/spec/models/build_spec.rb
+++ b/spec/models/build_spec.rb
@@ -63,9 +63,9 @@ describe Build do
let(:create_from_build) { Build.create_from build }
it ('there should be a pending task') do
- Build.pending.count.should eq(0)
+ expect(Build.pending.count(:all)).to eq 0
create_from_build
- Build.pending.count.should > 0
+ expect(Build.pending.count(:all)).to be > 0
end
end
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