We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e60e199 commit 99c05e0Copy full SHA for 99c05e0
1 file changed
spec/router_spec.rb
@@ -27,6 +27,16 @@
27
expect(match.params).to eq('id' => 'b')
28
end
29
30
+ it 'matches a static path with trailing slash' do
31
+ match = router.match('PATCH', '/a/')
32
+ expect(match.request_definition).to be(requests[2])
33
+ end
34
+
35
+ it 'matches a dynamic path with trailing slash' do
36
+ match = router.match('PATCH', '/id/')
37
+ expect(match.request_definition).to be(requests[1])
38
39
40
it 'returns an incomplete match for unknown path' do
41
expect(router.match('GET', '/c/d').error).to have_attributes(type: :not_found)
42
0 commit comments