Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-08 15:53:30 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-11 12:29:15 +0300
commitd51e8e1b77d78dd80a9fb9d362219b8b47b83904 (patch)
tree310080a7327ef2790a2c005d8cb67bed7c13d9de /features
parent7e1453f2f01d40f53d927ff43aae1baae3b4b272 (diff)
Inherit build badge access permissions from project
Diffstat (limited to 'features')
-rw-r--r--features/project/builds/badge.feature3
-rw-r--r--features/steps/project/builds/badge.rb1
2 files changed, 3 insertions, 1 deletions
diff --git a/features/project/builds/badge.feature b/features/project/builds/badge.feature
index 64263b2f538..9eb34475e68 100644
--- a/features/project/builds/badge.feature
+++ b/features/project/builds/badge.feature
@@ -1,6 +1,7 @@
Feature: Project Builds Badge
Background:
- Given project exists in some group namespace
+ Given I sign in as a user
+ And I own a project
And project has CI enabled
And project has a recent build
diff --git a/features/steps/project/builds/badge.rb b/features/steps/project/builds/badge.rb
index 0ceb4ddcd25..65f5e0f766f 100644
--- a/features/steps/project/builds/badge.rb
+++ b/features/steps/project/builds/badge.rb
@@ -1,4 +1,5 @@
class Spinach::Features::ProjectBuildsBadge < Spinach::FeatureSteps
+ include SharedAuthentication
include SharedProject
include SharedBuilds
include RepoHelpers