summaryrefslogtreecommitdiff
path: root/spec/features/projects
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-07-19 13:31:47 +0200
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-07-21 10:22:11 +0200
commit8877f2e8c16ebb0c1251124659117c7d2c209399 (patch)
treeb6e321c6d2c21d8bd1b08b1f48a04d676df422a8 /spec/features/projects
parent2086483b24e719ec8d82b3e7a52476626952885a (diff)
downloadgitlab-ce-8877f2e8c16ebb0c1251124659117c7d2c209399.tar.gz
Reword success to passing for pipeline badges
Diffstat (limited to 'spec/features/projects')
-rw-r--r--spec/features/projects/badges/pipeline_badge_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/projects/badges/pipeline_badge_spec.rb b/spec/features/projects/badges/pipeline_badge_spec.rb
new file mode 100644
index 00000000000..786973d6c2e
--- /dev/null
+++ b/spec/features/projects/badges/pipeline_badge_spec.rb
@@ -0,0 +1,14 @@
+require 'spec_helper'
+
+feature 'pipeline badge' do
+ let(:project) { create(:project, :repository, :public) }
+
+ # this can't be tested in the controller, as it bypasses the rails router
+ # and constructs a route based on the controller being tested
+ # Keep around until 10.0, see gitlab-org/gitlab-ce#35307
+ scenario 'user request the deprecated build status badge' do
+ visit build_project_badges_path(project, ref: project.default_branch, format: :svg)
+
+ expect(page.status_code).to eq(200)
+ end
+end