diff options
author | Christopher Bartz <bartz@dkrz.de> | 2016-04-13 15:17:42 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-08-11 16:54:18 +0300 |
commit | ecb3f1eb6c87ab40108a5d71a3287a205ab6fefb (patch) | |
tree | 3d7470b52f6bdbd48b0e7a271f36a00035e785ee /spec | |
parent | a081b842f9b4e0205cf08656403e6bd9bf0d367f (diff) |
Rename `markdown_preview` routes to `preview_markdown`
Diffstat (limited to 'spec')
-rw-r--r-- | spec/routing/project_routing_spec.rb | 8 |
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 |