summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-06 11:21:42 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-06 11:23:12 +0100
commit639c93b4f2bd492a214065b5fdc47da2f5d8614d (patch)
tree45204e566c7114668821ef920ba9989efe17b586 /spec/routing
parent0a9cab4ee65f2b42c56989698c401cab60d68b53 (diff)
downloadgitlab-ce-639c93b4f2bd492a214065b5fdc47da2f5d8614d.tar.gz
Don't have Markdown preview fail for long content by using POST rather than GET.
See https://github.com/gitlabhq/gitlabhq/issues/8611.
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/project_routing_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb
index e36b266a1ff..b8f9d2bf20a 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 GET /:id/markdown_preview(.:format) projects#markdown_preview
+# markdown_preview_project POST /:id/markdown_preview(.:format) projects#markdown_preview
describe ProjectsController, 'routing' do
it 'to #create' do
post('/projects').should route_to('projects#create')
@@ -91,7 +91,7 @@ describe ProjectsController, 'routing' do
end
it 'to #markdown_preview' do
- get('/gitlab/gitlabhq/markdown_preview').should(
+ post('/gitlab/gitlabhq/markdown_preview').should(
route_to('projects#markdown_preview', id: 'gitlab/gitlabhq')
)
end