summaryrefslogtreecommitdiff
path: root/spec/models/ci/build_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/ci/build_spec.rb')
-rw-r--r--spec/models/ci/build_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 9e5481017e2..7c054dd95f5 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -222,9 +222,10 @@ describe Ci::Build, :models do
end
describe '#coverage_regex' do
- subject { build.coverage_regex }
+ subject { build.coverage_regex }
+
let(:project_regex) { '\(\d+\.\d+\) covered' }
- let(:build_regex) { 'Code coverage: \d+\.\d+' }
+ let(:build_regex) { 'Code coverage: \d+\.\d+' }
context 'when project has build_coverage_regex set' do
before { project.build_coverage_regex = project_regex }
@@ -235,7 +236,7 @@ describe Ci::Build, :models do
context 'but coverage_regex attribute is also set' do
before { build.coverage_regex = build_regex }
- it { is_expected.to eq(build_regex) }
+ it { is_expected.to eq(build_regex) }
end
end