diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-08-30 19:10:53 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-08-30 19:12:55 -0400 |
commit | 77053a6c217e06770a348ac989992afbd41697f6 (patch) | |
tree | 11df50675162be2045777c1f59c312d359e0d6cf /spec/features | |
parent | 74b995d17b095e326177e7c0e452f0df3a1ab885 (diff) | |
download | gitlab-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/features')
-rw-r--r-- | spec/features/admin/runners_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/projects_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/runners_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/triggers_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/variables_spec.rb | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/spec/features/admin/runners_spec.rb b/spec/features/admin/runners_spec.rb index 1df4875..56f81eb 100644 --- a/spec/features/admin/runners_spec.rb +++ b/spec/features/admin/runners_spec.rb @@ -42,7 +42,7 @@ describe "Admin Runners", feature: true do end describe 'runner info' do - it { find_field('runner_token').value.should eq runner.token } + it { expect(find_field('runner_token').value).to eq runner.token } end describe 'projects' do diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb index 142c663..7861e53 100644 --- a/spec/features/projects_spec.rb +++ b/spec/features/projects_spec.rb @@ -39,7 +39,7 @@ describe "Projects", feature: true do expect(page).to have_content 'was successfully updated' - find_field('Timeout').value.should eq '70' + expect(find_field('Timeout').value).to eq '70' end end diff --git a/spec/features/runners_spec.rb b/spec/features/runners_spec.rb index 829e5db..05fb7e0 100644 --- a/spec/features/runners_spec.rb +++ b/spec/features/runners_spec.rb @@ -60,7 +60,7 @@ describe "Runners", feature: true do click_on "Remove runner" end - Runner.exists?(id: @specific_runner).should be_falsey + expect(Runner.exists?(id: @specific_runner)).to be_falsey end end @@ -75,7 +75,7 @@ describe "Runners", feature: true do click_on "Enable shared runners" - @project.reload.shared_runners_enabled.should be_truthy + expect(@project.reload.shared_runners_enabled).to be_truthy end end diff --git a/spec/features/triggers_spec.rb b/spec/features/triggers_spec.rb index 9a1bc77..b8f4616 100644 --- a/spec/features/triggers_spec.rb +++ b/spec/features/triggers_spec.rb @@ -11,7 +11,7 @@ describe 'Variables', feature: true do context 'create a trigger' do before do click_on 'Add Trigger' - @project.triggers.count.should eq 1 + expect(@project.triggers.count).to eq 1 end it 'contains trigger token' do @@ -20,7 +20,7 @@ describe 'Variables', feature: true do it 'revokes the trigger' do click_on 'Revoke' - @project.triggers.count.should eq 0 + expect(@project.triggers.count).to eq 0 end end end diff --git a/spec/features/variables_spec.rb b/spec/features/variables_spec.rb index f0b0cd8..9cf3632 100644 --- a/spec/features/variables_spec.rb +++ b/spec/features/variables_spec.rb @@ -19,7 +19,7 @@ describe "Variables", feature: true do click_on "Save changes" expect(page).to have_content("Variables were successfully updated.") - @project.variables.count.should eq 1 + expect(@project.variables.count).to eq 1 end end |