Commit 23c99671 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch '323349-fix-truncated-paths' into 'master'

Use hard-coded group paths for truncated export filename spec

See merge request gitlab-org/gitlab!55637
parents 50a24009 e14ffca1
...@@ -4,8 +4,8 @@ require 'spec_helper' ...@@ -4,8 +4,8 @@ require 'spec_helper'
RSpec.describe Gitlab::ImportExport do RSpec.describe Gitlab::ImportExport do
describe 'export filename' do describe 'export filename' do
let(:group) { create(:group, :nested) } let(:group) { build(:group, path: 'child', parent: build(:group, path: 'parent')) }
let(:project) { create(:project, :public, path: 'project-path', namespace: group) } let(:project) { build(:project, :public, path: 'project-path', namespace: group) }
it 'contains the project path' do it 'contains the project path' do
expect(described_class.export_filename(exportable: project)).to include(project.path) 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