summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-13 11:44:52 -0500
committerDouwe Maan <douwe@selenight.nl>2017-04-17 19:03:21 -0500
commit00c4e1410388b6d85e3f163204a49c31f76b5349 (patch)
tree569f3ee35a2bcebc5c2eda71fbb84d5ec92c8e4e /spec/routing
parent41acc87fbd457d2894fb519eb48f215d017ddec2 (diff)
downloadgitlab-ce-00c4e1410388b6d85e3f163204a49c31f76b5349.tar.gz
Remove format from end of URL for URLs that take a ref or path
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/project_routing_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb
index 4baccacd448..a3de022d242 100644
--- a/spec/routing/project_routing_spec.rb
+++ b/spec/routing/project_routing_spec.rb
@@ -484,7 +484,7 @@ describe 'project routing' do
end
it 'to #list' do
- expect(get('/gitlab/gitlabhq/files/master.json')).to route_to('projects/find_file#list', namespace_id: 'gitlab', project_id: 'gitlabhq', id: 'master', format: 'json')
+ expect(get('/gitlab/gitlabhq/files/master.json')).to route_to('projects/find_file#list', namespace_id: 'gitlab', project_id: 'gitlabhq', id: 'master.json')
end
end