Commit e14ffca1 authored by Markus Koller's avatar Markus Koller

Use hard-coded group paths for truncated export filename spec

On CI the auto-generated group paths can become so long that the
project path is truncated away, this fixese that by using hard-coded
group paths.
parent a46f05cd
......@@ -4,8 +4,8 @@ require 'spec_helper'
RSpec.describe Gitlab::ImportExport do
describe 'export filename' do
let(:group) { create(:group, :nested) }
let(:project) { create(:project, :public, path: 'project-path', namespace: group) }
let(:group) { build(:group, path: 'child', parent: build(:group, path: 'parent')) }
let(:project) { build(:project, :public, path: 'project-path', namespace: group) }
it 'contains the project path' do
expect(described_class.export_filename(exportable: project)).to include(project.path)
......
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