diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-07-12 10:31:15 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-07-18 10:23:32 +0200 |
commit | c220f9a03717ea2274a61f3365d37b5bac5c24e7 (patch) | |
tree | df79f79e2b541ce6fbe3edc3051df17c70563b24 /spec | |
parent | 463f1cb52b0d57f0e388a0324a06f1a90bb9ea09 (diff) | |
download | gitlab-ce-c220f9a03717ea2274a61f3365d37b5bac5c24e7.tar.gz |
Add tests to project builds for pending tab
Fix CHANGELOG
Fix build spec for pending tab
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/builds_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/builds_spec.rb b/spec/features/builds_spec.rb index 16832c297ac..38c11ca9c4c 100644 --- a/spec/features/builds_spec.rb +++ b/spec/features/builds_spec.rb @@ -13,6 +13,18 @@ describe "Builds" do end describe "GET /:project/builds" do + context "Pending scope" do + before do + visit namespace_project_builds_path(@project.namespace, @project, scope: :pending) + end + + it { expect(page).to have_link 'Cancel running' } + it { expect(page).to have_selector('.nav-links li.active', text: 'Pending') } + it { expect(page).to have_content @build.short_sha } + it { expect(page).to have_content @build.ref } + it { expect(page).to have_content @build.name } + end + context "Running scope" do before do @build.run! |