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:
authorRémy Coutable <remy@rymai.me>2016-02-04 13:08:58 +0300
committerRémy Coutable <remy@rymai.me>2016-02-22 21:34:35 +0300
commitf36fde94d0f72bc86abf4a424710f9e5c72cfc30 (patch)
tree77a8ee1f627fd96854172b349561c153dcddcd6c /features/steps/shared
parentbea6aa3377dfc685ed2d6427609e17318279e8b1 (diff)
Add a spec for coverage indicator in project's builds list
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