summaryrefslogtreecommitdiff
path: root/spec/features/projects/commit/builds_spec.rb
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-11-29 13:02:28 +0000
committerFilipa Lacerda <filipa@gitlab.com>2016-12-21 11:18:15 +0000
commit7086dac42fff6e32bc38b389ffa104d9c21a159c (patch)
tree039fbb7c6c4d003310b8d500760f4834e2de1fb1 /spec/features/projects/commit/builds_spec.rb
parent9a82aa70e3f3ff679c7a27ccbb9d497576b20822 (diff)
downloadgitlab-ce-7086dac42fff6e32bc38b389ffa104d9c21a159c.tar.gz
Changes after review
Fix broken test Remove spinach tests for the builds tab
Diffstat (limited to 'spec/features/projects/commit/builds_spec.rb')
-rw-r--r--spec/features/projects/commit/builds_spec.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/features/projects/commit/builds_spec.rb b/spec/features/projects/commit/builds_spec.rb
index fcdf7870f34..33f1c323af1 100644
--- a/spec/features/projects/commit/builds_spec.rb
+++ b/spec/features/projects/commit/builds_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-feature 'project commit builds' do
+feature 'project commit pipelines' do
given(:project) { create(:project) }
background do
@@ -16,11 +16,13 @@ feature 'project commit builds' do
ref: 'master')
end
- scenario 'user views commit builds page' do
- visit builds_namespace_project_commit_path(project.namespace,
- project, project.commit.sha)
+ scenario 'user views commit pipelines page' do
+ visit pipelines_namespace_project_commit_path(project.namespace, project, project.commit.sha)
- expect(page).to have_content('Builds')
+ page.within('.table-holder') do
+ expect(page).to have_content project.pipelines[0].status # pipeline status
+ expect(page).to have_content project.pipelines[0].id # pipeline ids
+ end
end
end
end