summaryrefslogtreecommitdiff
path: root/spec/helpers/runners_helper_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-08-30 19:10:53 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-08-30 19:12:55 -0400
commit77053a6c217e06770a348ac989992afbd41697f6 (patch)
tree11df50675162be2045777c1f59c312d359e0d6cf /spec/helpers/runners_helper_spec.rb
parent74b995d17b095e326177e7c0e452f0df3a1ab885 (diff)
downloadgitlab-ci-rs-rspec3.tar.gz
Convert to RSpec3 syntax via transpecrs-rspec3
Command: transpec -c 'bundle exec rspec spec -t ~feature' \ -o should,oneliner,should_receive
Diffstat (limited to 'spec/helpers/runners_helper_spec.rb')
-rw-r--r--spec/helpers/runners_helper_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/runners_helper_spec.rb b/spec/helpers/runners_helper_spec.rb
index 02d497b..a93032e 100644
--- a/spec/helpers/runners_helper_spec.rb
+++ b/spec/helpers/runners_helper_spec.rb
@@ -3,16 +3,16 @@ require 'spec_helper'
describe RunnersHelper do
it "returns - not contacted yet" do
runner = FactoryGirl.build :runner
- runner_status_icon(runner).should include("not connected yet")
+ expect(runner_status_icon(runner)).to include("not connected yet")
end
it "returns offline text" do
runner = FactoryGirl.build(:runner, contacted_at: 1.day.ago, active: true)
- runner_status_icon(runner).should include("Runner is offline")
+ expect(runner_status_icon(runner)).to include("Runner is offline")
end
it "returns online text" do
runner = FactoryGirl.build(:runner, contacted_at: 1.hour.ago, active: true)
- runner_status_icon(runner).should include("Runner is online")
+ expect(runner_status_icon(runner)).to include("Runner is online")
end
end