Commit 31019923 authored by Stefan Hanreich's avatar Stefan Hanreich

removed superfluos tests

parent a1279eb5
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment