Commit ab85d969 authored by Douwe Maan's avatar Douwe Maan

Fix spec

parent 14969ac8
No related merge requests found
...@@ -19,7 +19,7 @@ describe "Builds" do ...@@ -19,7 +19,7 @@ describe "Builds" do
end end
it { expect(page).to have_content 'Running' } it { expect(page).to have_content 'Running' }
it { expect(page).to have_content 'Cancel all' } it { expect(page).to have_content 'Cancel running' }
it { expect(page).to have_content @build.short_sha } it { expect(page).to have_content @build.short_sha }
it { expect(page).to have_content @build.ref } it { expect(page).to have_content @build.ref }
it { expect(page).to have_content @build.name } it { expect(page).to have_content @build.name }
...@@ -32,7 +32,7 @@ describe "Builds" do ...@@ -32,7 +32,7 @@ describe "Builds" do
end end
it { expect(page).to have_content 'No builds to show' } it { expect(page).to have_content 'No builds to show' }
it { expect(page).to have_content 'Cancel all' } it { expect(page).to have_content 'Cancel running' }
end end
context "All builds" do context "All builds" do
...@@ -45,7 +45,7 @@ describe "Builds" do ...@@ -45,7 +45,7 @@ describe "Builds" do
it { expect(page).to have_content @build.short_sha } it { expect(page).to have_content @build.short_sha }
it { expect(page).to have_content @build.ref } it { expect(page).to have_content @build.ref }
it { expect(page).to have_content @build.name } it { expect(page).to have_content @build.name }
it { expect(page).to_not have_content 'Cancel all' } it { expect(page).to_not have_content 'Cancel running' }
end end
end end
...@@ -53,11 +53,11 @@ describe "Builds" do ...@@ -53,11 +53,11 @@ describe "Builds" do
before do before do
@build.run! @build.run!
visit namespace_project_builds_path(@gl_project.namespace, @gl_project) visit namespace_project_builds_path(@gl_project.namespace, @gl_project)
click_link "Cancel all" click_link "Cancel running"
end end
it { expect(page).to have_content 'No builds to show' } it { expect(page).to have_content 'No builds to show' }
it { expect(page).to_not have_content 'Cancel all' } it { expect(page).to_not have_content 'Cancel running' }
end end
describe "GET /:project/builds/:id" do describe "GET /:project/builds/:id" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment