diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-24 17:13:57 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-24 17:13:57 +0300 |
commit | dfbccdfc1b119ff801f810607b724e4572e37bb1 (patch) | |
tree | 7c6aa439481aa85a79519546d24adf48222605e8 /spec | |
parent | ad640bc5f92ef0456a53dd82004f449cd9d7475d (diff) |
Fix spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/import_export/import_export_spec.rb | 2 | ||||
-rw-r--r-- | spec/support/markdown_feature.rb | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/spec/lib/gitlab/import_export/import_export_spec.rb b/spec/lib/gitlab/import_export/import_export_spec.rb index 20743811dab..f3fd0d82875 100644 --- a/spec/lib/gitlab/import_export/import_export_spec.rb +++ b/spec/lib/gitlab/import_export/import_export_spec.rb @@ -10,7 +10,7 @@ describe Gitlab::ImportExport, services: true do end 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 it 'does not go over a certain length' do diff --git a/spec/support/markdown_feature.rb b/spec/support/markdown_feature.rb index 5980d14c8ae..dea0015f105 100644 --- a/spec/support/markdown_feature.rb +++ b/spec/support/markdown_feature.rb @@ -79,9 +79,8 @@ class MarkdownFeature def xproject @xproject ||= begin - group = create(:group, name: 'cross-reference') - group2 = create(:group, parent: group, name: 'nested-group') - create(:project, namespace: group2) do |project| + group = create(:group, :nested) + create(:project, namespace: group) do |project| project.team << [user, :developer] end end |