summaryrefslogtreecommitdiff
path: root/features/steps/shared/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/shared/project.rb')
-rw-r--r--features/steps/shared/project.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb
index fa841f67510..7021fac5fe4 100644
--- a/features/steps/shared/project.rb
+++ b/features/steps/shared/project.rb
@@ -199,11 +199,18 @@ module SharedProject
step 'project "Shop" has CI enabled' do
project = Project.find_by(name: "Shop")
- project.enable_ci(@user)
+ project.enable_ci
end
step 'project "Shop" has CI build' do
project = Project.find_by(name: "Shop")
- create :ci_commit, project: project.gitlab_ci_project, sha: project.commit.sha
+ create :ci_commit, gl_project: project, sha: project.commit.sha
+ end
+
+ step 'I should see last commit with CI status' do
+ page.within ".project-last-commit" do
+ expect(page).to have_content(project.commit.sha[0..6])
+ expect(page).to have_content("skipped")
+ end
end
end