diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 14:56:22 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 14:56:22 +0200 |
commit | 20438213d5f16907f0b0ea2cd2722b6ccfdc7556 (patch) | |
tree | d658442c0375640b94e4ab4be86f5641c22e9a9f /spec/features | |
parent | 640924e4a23dcfe1e8d6b616e822bfc7fce56d8f (diff) | |
download | gitlab-ce-20438213d5f16907f0b0ea2cd2722b6ccfdc7556.tar.gz |
Use `capitalize` instead of `titleize` for manual actions
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/environments_spec.rb | 8 | ||||
-rw-r--r-- | spec/features/pipelines_spec.rb | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/environments_spec.rb b/spec/features/environments_spec.rb index 491eec70752..d62b3772fdb 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.titleize) + expect(page).to have_link(manual.name.capitalize) end scenario 'does allow to play manual action' do expect(manual).to be_skipped - expect{ click_link(manual.name.titleize) }.to change{ Ci::Pipeline.count }.by(0) + expect{ click_link(manual.name.capitalize) }.to change{ Ci::Pipeline.count }.by(0) 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.titleize) + expect(page).to have_link(manual.name.capitalize) end scenario 'does allow to play manual action' do expect(manual).to be_skipped - expect{ click_link(manual.name.titleize) }.to change{ Ci::Pipeline.count }.by(0) + expect{ click_link(manual.name.capitalize) }.to change{ Ci::Pipeline.count }.by(0) expect(page).to have_content(manual.name) expect(manual.reload).to be_pending end diff --git a/spec/features/pipelines_spec.rb b/spec/features/pipelines_spec.rb index 55cecf3d587..7f861db1969 100644 --- a/spec/features/pipelines_spec.rb +++ b/spec/features/pipelines_spec.rb @@ -67,10 +67,10 @@ describe "Pipelines" do before { visit namespace_project_pipelines_path(project.namespace, project) } - it { expect(page).to have_link('Manual Build') } + it { expect(page).to have_link('Manual build') } context 'when playing' do - before { click_link('Manual Build') } + before { click_link('Manual build') } it { expect(manual.reload).to be_pending } end |