Commit 3b7c2adf0aead7438a0319d21a050c30b408c03a
1 parent
246faa3d
Exists in
master
and in
4 other branches
Add diff format to commit#show
Showing
2 changed files
with
2 additions
and
0 deletions
Show diff stats
app/controllers/commit_controller.rb
spec/routing/project_routing_spec.rb
... | ... | @@ -285,6 +285,7 @@ end |
285 | 285 | describe CommitController, "routing" do |
286 | 286 | it "to #show" do |
287 | 287 | get("/gitlabhq/commit/4246fb").should route_to('commit#show', project_id: 'gitlabhq', id: '4246fb') |
288 | + get("/gitlabhq/commit/4246fb.diff").should route_to('commit#show', project_id: 'gitlabhq', id: '4246fb', format: 'diff') | |
288 | 289 | get("/gitlabhq/commit/4246fb.patch").should route_to('commit#show', project_id: 'gitlabhq', id: '4246fb', format: 'patch') |
289 | 290 | get("/gitlabhq/commit/4246fbd13872934f72a8fd0d6fb1317b47b59cb5").should route_to('commit#show', project_id: 'gitlabhq', id: '4246fbd13872934f72a8fd0d6fb1317b47b59cb5') |
290 | 291 | end | ... | ... |