diff options
Diffstat (limited to 'spec/helpers/gitlab_routing_helper_spec.rb')
-rw-r--r-- | spec/helpers/gitlab_routing_helper_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/helpers/gitlab_routing_helper_spec.rb b/spec/helpers/gitlab_routing_helper_spec.rb index bf043f3f013..38699108b06 100644 --- a/spec/helpers/gitlab_routing_helper_spec.rb +++ b/spec/helpers/gitlab_routing_helper_spec.rb @@ -75,6 +75,12 @@ describe GitlabRoutingHelper do expect(preview_markdown_path(group)).to eq("/groups/#{group.path}/preview_markdown") end + it 'returns group preview markdown path for a group parent with args' do + group = create(:group) + + expect(preview_markdown_path(group, { type_id: 5 })).to eq("/groups/#{group.path}/preview_markdown?type_id=5") + end + it 'returns project preview markdown path for a project parent' do expect(preview_markdown_path(project)).to eq("/#{project.full_path}/preview_markdown") end |