summaryrefslogtreecommitdiff
path: root/spec/models/ci/runner_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/ci/runner_spec.rb')
-rw-r--r--spec/models/ci/runner_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb
index 62a719e499b..c6130b69964 100644
--- a/spec/models/ci/runner_spec.rb
+++ b/spec/models/ci/runner_spec.rb
@@ -43,9 +43,9 @@ describe Ci::Runner do
before { shared_runner.assign_to(project) }
- it { shared_runner.should be_specific }
- it { shared_runner.projects.should == [project] }
- it { shared_runner.only_for?(project).should be_true }
+ it { expect(shared_runner).to be_specific }
+ it { expect(shared_runner.projects).to eq([project]) }
+ it { expect(shared_runner.only_for?(project)).to be_truthy }
end
describe "belongs_to_one_project?" do
@@ -56,7 +56,7 @@ describe Ci::Runner do
project.runners << runner
project1.runners << runner
- runner.belongs_to_one_project?.should be_false
+ expect(runner.belongs_to_one_project?).to be_falsey
end
it "returns true" do
@@ -64,7 +64,7 @@ describe Ci::Runner do
project = FactoryGirl.create(:ci_project)
project.runners << runner
- runner.belongs_to_one_project?.should be_true
+ expect(runner.belongs_to_one_project?).to be_truthy
end
end
end