summaryrefslogtreecommitdiff
path: root/features/steps/shared
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-02-26 09:32:07 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-02-26 09:32:07 -0500
commit08ec838ed501473846806be2680e8888ff859e10 (patch)
tree4a4664c505d667db907084bd8850cd689f338f7e /features/steps/shared
parentb2dcfc4db3828888f9aa0a9cc38e89fe84d30b2c (diff)
parentf150b8a5b9a6f56151523061813bad2cf48c9d91 (diff)
downloadgitlab-ce-08ec838ed501473846806be2680e8888ff859e10.tar.gz
Merge branch 'master' into avatar-croppingavatar-cropping
Diffstat (limited to 'features/steps/shared')
-rw-r--r--features/steps/shared/builds.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/features/steps/shared/builds.rb b/features/steps/shared/builds.rb
index 0bd5d93b997..f33ed7834fe 100644
--- a/features/steps/shared/builds.rb
+++ b/features/steps/shared/builds.rb
@@ -5,9 +5,13 @@ module SharedBuilds
@project.enable_ci
end
+ step 'project has coverage enabled' do
+ @project.update_attribute(:build_coverage_regex, /Coverage (\d+)%/)
+ end
+
step 'project has a recent build' do
@ci_commit = create(:ci_commit, project: @project, sha: @project.commit.sha)
- @build = create(:ci_build, commit: @ci_commit)
+ @build = create(:ci_build_with_coverage, commit: @ci_commit)
end
step 'recent build is successful' do