diff options
author | Stefan Hanreich <stefanhani@gmail.com> | 2017-05-11 20:50:59 +0200 |
---|---|---|
committer | Stefan Hanreich <stefanhani@gmail.com> | 2017-05-11 20:50:59 +0200 |
commit | 3101992320687b05a7e951c0c3befeb1d4093b45 (patch) | |
tree | ae101ad12a88134b77b6fda2c66d20569034e571 | |
parent | a1279eb543e5f29d93c2eedc42878cd60e5c238d (diff) | |
download | gitlab-ce-3101992320687b05a7e951c0c3befeb1d4093b45.tar.gz |
removed superfluos tests
-rw-r--r-- | spec/models/ci/build_spec.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 407b49a1ff7..c29c62a2580 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -965,12 +965,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', @@ -985,7 +979,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 |