summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hanreich <stefanhani@gmail.com>2017-05-11 20:50:59 +0200
committerStefan Hanreich <stefanhani@gmail.com>2017-06-18 23:57:22 +0200
commit6394d560ada1bc8b70bcd338343fe978916f84a4 (patch)
treed41ec7ddce3200b26035a589196fea0c32a63141
parent5fc22bfabd619115c1df28d30a951084508b28ed (diff)
downloadgitlab-ce-6394d560ada1bc8b70bcd338343fe978916f84a4.tar.gz
removed superfluos tests
-rw-r--r--spec/models/ci/build_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index a54261667bd..855e55dd489 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -1033,12 +1033,6 @@ describe Ci::Build, :models do
end
describe '#ref_slug' do
- let(:build) { build(:ci_build, ref: "'100%") }
- subject { build.ref_slug }
-
- it { is_expected.not_to start_with('-') }
- it { is_expected.not_to end_with('-') }
-
{
'master' => 'master',
'1-foo' => '1-foo',
@@ -1053,7 +1047,7 @@ describe Ci::Build, :models do
it "transforms #{ref} to #{slug}" do
build.ref = ref
- is_expected.to eq(slug)
+ expected(build.ref_slug).to eq(slug)
end
end
end