diff options
Diffstat (limited to 'spec/models/releases/source_spec.rb')
-rw-r--r-- | spec/models/releases/source_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/releases/source_spec.rb b/spec/models/releases/source_spec.rb index 227085951c0..fadc2fd6f53 100644 --- a/spec/models/releases/source_spec.rb +++ b/spec/models/releases/source_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' RSpec.describe Releases::Source do - let_it_be(:project) { create(:project, :repository, name: 'finance-cal') } + let_it_be(:project) { create(:project, :repository) } let(:tag_name) { 'v1.0' } @@ -27,7 +27,7 @@ RSpec.describe Releases::Source do it 'returns zip archived source url' do is_expected - .to eq("#{project.web_url}/-/archive/v1.0/finance-cal-v1.0.zip") + .to eq("#{project.web_url}/-/archive/v1.0/#{project.path}-v1.0.zip") end context 'when ref is directory structure' do @@ -35,7 +35,7 @@ RSpec.describe Releases::Source do it 'converts slash to dash' do is_expected - .to eq("#{project.web_url}/-/archive/beta/v1.0/finance-cal-beta-v1.0.zip") + .to eq("#{project.web_url}/-/archive/beta/v1.0/#{project.path}-beta-v1.0.zip") end end end |