summaryrefslogtreecommitdiff
path: root/spec/factories/ci
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-02-04 11:08:58 +0100
committerRémy Coutable <remy@rymai.me>2016-02-22 19:34:35 +0100
commitf36fde94d0f72bc86abf4a424710f9e5c72cfc30 (patch)
tree77a8ee1f627fd96854172b349561c153dcddcd6c /spec/factories/ci
parentbea6aa3377dfc685ed2d6427609e17318279e8b1 (diff)
downloadgitlab-ce-f36fde94d0f72bc86abf4a424710f9e5c72cfc30.tar.gz
Add a spec for coverage indicator in project's builds listBaertierchen/gitlab-ce-showTestCoverage
Diffstat (limited to 'spec/factories/ci')
-rw-r--r--spec/factories/ci/builds.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb
index a46466798d6..a7a54d44521 100644
--- a/spec/factories/ci/builds.rb
+++ b/spec/factories/ci/builds.rb
@@ -53,6 +53,10 @@ FactoryGirl.define do
tag true
end
+ factory :ci_build_with_coverage do
+ coverage 99.9
+ end
+
trait :trace do
after(:create) do |build, evaluator|
build.trace = 'BUILD TRACE'
@@ -68,7 +72,7 @@ FactoryGirl.define do
build.artifacts_metadata =
fixture_file_upload(Rails.root.join('spec/fixtures/ci_build_artifacts_metadata.gz'),
'application/x-gzip')
-
+
build.save!
end
end