summaryrefslogtreecommitdiff
path: root/spec/models/ci
diff options
context:
space:
mode:
authorLeandro Camargo <leandroico@gmail.com>2016-12-13 02:53:12 -0200
committerLeandro Camargo <leandroico@gmail.com>2017-01-25 01:07:45 -0200
commit8fe708f4a2850d71c11234b234e039b2a9422299 (patch)
tree95337889798b4166b35e5b8e8929a14c4f13f98b /spec/models/ci
parent518fd2eb93711e1e9c3d597a6bdf13366d9abdb5 (diff)
downloadgitlab-ce-8fe708f4a2850d71c11234b234e039b2a9422299.tar.gz
Make more code improvements around the '/' stripping logic
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/build_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index f23155a5d13..fe0a9707b2a 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -232,11 +232,11 @@ describe Ci::Build, :models do
end
context 'and coverage_regex attribute is not set' do
- it { is_expected.to eq("/#{project_regex}/") }
+ it { is_expected.to eq(project_regex) }
end
context 'but coverage_regex attribute is also set' do
- let(:build_regex) { '/Code coverage: \d+\.\d+/' }
+ let(:build_regex) { 'Code coverage: \d+\.\d+' }
before do
build.coverage_regex = build_regex