summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authorVinnie Okada <vokada@mrvinn.com>2014-10-16 22:45:13 -0500
committerVinnie Okada <vokada@mrvinn.com>2014-10-16 22:45:13 -0500
commitcd3eabd71236d2be1430d2dbf23aad91d73aa783 (patch)
tree3810b80ab0d0520cf433ef1dccc1afdd7e04411d /spec/routing
parent5700842ba8ca2f3100395a9fb98c759e78e63d96 (diff)
downloadgitlab-ce-cd3eabd71236d2be1430d2dbf23aad91d73aa783.tar.gz
Use GET instead of POST for Markdown previews
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 112082d8890..f1f5ac96a62 100644
--- a/spec/routing/project_routing_spec.rb
+++ b/spec/routing/project_routing_spec.rb
@@ -61,7 +61,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
+# markdown_preview_project GET /:id/markdown_preview(.:format) projects#markdown_preview
describe ProjectsController, "routing" do
it "to #create" do
post("/projects").should route_to('projects#create')
@@ -96,7 +96,7 @@ describe ProjectsController, "routing" do
end
it 'to #markdown_preview' do
- post('/gitlab/gitlabhq/markdown_preview').should(
+ get('/gitlab/gitlabhq/markdown_preview').should(
route_to('projects#markdown_preview', id: 'gitlab/gitlabhq')
)
end