summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authorChristopher Bartz <bartz@dkrz.de>2016-04-13 14:17:42 +0200
committerRémy Coutable <remy@rymai.me>2016-08-11 15:54:18 +0200
commitecb3f1eb6c87ab40108a5d71a3287a205ab6fefb (patch)
tree3d7470b52f6bdbd48b0e7a271f36a00035e785ee /spec/routing
parenta081b842f9b4e0205cf08656403e6bd9bf0d367f (diff)
downloadgitlab-ce-ecb3f1eb6c87ab40108a5d71a3287a205ab6fefb.tar.gz
Rename `markdown_preview` routes to `preview_markdown`
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/project_routing_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb
index b941e78f983..77842057a10 100644
--- a/spec/routing/project_routing_spec.rb
+++ b/spec/routing/project_routing_spec.rb
@@ -60,7 +60,7 @@ end
# project GET /:id(.:format) projects#show
# PUT /:id(.:format) projects#update
# DELETE /:id(.:format) projects#destroy
-# markdown_preview_project POST /:id/markdown_preview(.:format) projects#markdown_preview
+# preview_markdown_project POST /:id/preview_markdown(.:format) projects#preview_markdown
describe ProjectsController, 'routing' do
it 'to #create' do
expect(post('/projects')).to route_to('projects#create')
@@ -91,9 +91,9 @@ describe ProjectsController, 'routing' do
expect(delete('/gitlab/gitlabhq')).to route_to('projects#destroy', namespace_id: 'gitlab', id: 'gitlabhq')
end
- it 'to #markdown_preview' do
- expect(post('/gitlab/gitlabhq/markdown_preview')).to(
- route_to('projects#markdown_preview', namespace_id: 'gitlab', id: 'gitlabhq')
+ it 'to #preview_markdown' do
+ expect(post('/gitlab/gitlabhq/preview_markdown')).to(
+ route_to('projects#preview_markdown', namespace_id: 'gitlab', id: 'gitlabhq')
)
end
end