diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 18:42:57 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 18:42:57 +0200 |
commit | d92054dd660fba766282ad382ca6f541b5e1bad6 (patch) | |
tree | cdff5f29ddeced2acc6edb025c29f5b4335e7547 /spec/features/environments_spec.rb | |
parent | f12faae8b841189fb3f8693fc4880fdb9688b5d2 (diff) | |
download | gitlab-ce-d92054dd660fba766282ad382ca6f541b5e1bad6.tar.gz |
Use `humanize`
Diffstat (limited to 'spec/features/environments_spec.rb')
-rw-r--r-- | spec/features/environments_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/environments_spec.rb b/spec/features/environments_spec.rb index d62b3772fdb..9c018be14b7 100644 --- a/spec/features/environments_spec.rb +++ b/spec/features/environments_spec.rb @@ -52,12 +52,12 @@ feature 'Environments', feature: true do given(:manual) { create(:ci_build, :manual, pipeline: pipeline, name: 'deploy to production') } scenario 'does show a play button' do - expect(page).to have_link(manual.name.capitalize) + expect(page).to have_link(manual.name.humanize) end scenario 'does allow to play manual action' do expect(manual).to be_skipped - expect{ click_link(manual.name.capitalize) }.to change{ Ci::Pipeline.count }.by(0) + expect{ click_link(manual.name.humanize) }.not_to change { Ci::Pipeline.count } expect(page).to have_content(manual.name) expect(manual.reload).to be_pending end @@ -113,12 +113,12 @@ feature 'Environments', feature: true do given(:manual) { create(:ci_build, :manual, pipeline: pipeline, name: 'deploy to production') } scenario 'does show a play button' do - expect(page).to have_link(manual.name.capitalize) + expect(page).to have_link(manual.name.humanize) end scenario 'does allow to play manual action' do expect(manual).to be_skipped - expect{ click_link(manual.name.capitalize) }.to change{ Ci::Pipeline.count }.by(0) + expect{ click_link(manual.name.humanize) }.not_to change { Ci::Pipeline.count } expect(page).to have_content(manual.name) expect(manual.reload).to be_pending end |