Skip to content

Commit 669e601

Browse files
(squash)
1 parent a52fcdb commit 669e601

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/grape/api/routes_with_requirements_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def app
3333

3434
it 'routes to namespace and path params with dots, with overridden requirements' do
3535
subject.namespace ':ns_with_dots', requirements: { ns_with_dots: %r{[^\/]+} } do
36-
get '/:another_id_with_dots', requirements: { ns_with_dots: %r{[^\/]+},
37-
another_id_with_dots: %r{[^\/]+} } do
36+
get ':another_id_with_dots', requirements: { ns_with_dots: %r{[^\/]+},
37+
another_id_with_dots: %r{[^\/]+} } do
3838
"#{params[:ns_with_dots]}/#{params[:another_id_with_dots]}"
3939
end
4040
end

0 commit comments

Comments
 (0)