Commit dfbccdfc authored by Douwe Maan's avatar Douwe Maan

Fix spec

parent ad640bc5
...@@ -10,7 +10,7 @@ describe Gitlab::ImportExport, services: true do ...@@ -10,7 +10,7 @@ describe Gitlab::ImportExport, services: true do
end end
it 'contains the namespace path' do it 'contains the namespace path' do
expect(described_class.export_filename(project: project)).to include(project.namespace.full_path) expect(described_class.export_filename(project: project)).to include(project.namespace.full_path.tr('/', '_'))
end end
it 'does not go over a certain length' do it 'does not go over a certain length' do
......
...@@ -79,9 +79,8 @@ class MarkdownFeature ...@@ -79,9 +79,8 @@ class MarkdownFeature
def xproject def xproject
@xproject ||= begin @xproject ||= begin
group = create(:group, name: 'cross-reference') group = create(:group, :nested)
group2 = create(:group, parent: group, name: 'nested-group') create(:project, namespace: group) do |project|
create(:project, namespace: group2) do |project|
project.team << [user, :developer] project.team << [user, :developer]
end 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