diff options
| author | Douwe Maan <douwe@gitlab.com> | 2015-10-15 11:26:58 +0200 |
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2015-10-15 11:26:58 +0200 |
| commit | 95f0440a7823a927ebba1557b091c12255e49ac4 (patch) | |
| tree | fa6d130f2baff18e7a70d74dafe79e20da35babe /spec/features/builds_spec.rb | |
| parent | 4a5b77188ec7525d1c3a1ee925c8791f841b040c (diff) | |
| parent | 123669a55107514798ba531ba3a744b3ec8503ee (diff) | |
| download | gitlab-ce-95f0440a7823a927ebba1557b091c12255e49ac4.tar.gz | |
Merge branch 'master' into rs-redactor-filter
Diffstat (limited to 'spec/features/builds_spec.rb')
| -rw-r--r-- | spec/features/builds_spec.rb | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/spec/features/builds_spec.rb b/spec/features/builds_spec.rb index d0d60491b65..924047a0d8f 100644 --- a/spec/features/builds_spec.rb +++ b/spec/features/builds_spec.rb @@ -1,7 +1,6 @@ require 'spec_helper' describe "Builds" do - before do login_as(:user) @commit = FactoryGirl.create :ci_commit @@ -19,4 +18,24 @@ describe "Builds" do it { expect(page).to have_content @commit.git_commit_message } it { expect(page).to have_content @commit.git_author_name } end + + describe "GET /:project/builds/:id/cancel" do + before do + @build.run! + visit cancel_namespace_project_build_path(@gl_project.namespace, @gl_project, @build) + end + + it { expect(page).to have_content 'canceled' } + it { expect(page).to have_content 'Retry' } + end + + describe "POST /:project/builds/:id/retry" do + before do + visit cancel_namespace_project_build_path(@gl_project.namespace, @gl_project, @build) + click_link 'Retry' + end + + it { expect(page).to have_content 'pending' } + it { expect(page).to have_content 'Cancel' } + end end |
