rack-app 7.5.0 → 7.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rack/app/test.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fa1cbbfa3a7debe947b55c0f876563c3d41bc29
|
4
|
+
data.tar.gz: 7275baae82226050a885bfa29dafb205e41cedab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 495a0e592d611f7ea125c85468efd76a5d254ff4d387e4115da8bf16a135e8779419d182b9eea9b92ab91bbeb7f89609edc2bcce4d9d8fe119e76b22c8e51da4
|
7
|
+
data.tar.gz: 043431aa915f8d5eaaabd78f2cb6f62cd95db9af21e5a14ad4356ad27ea293e86761e1b9d81e6951f46962f8fd97cc0103c87640feee8133470929e28f63bce8
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.5.
|
1
|
+
7.5.1
|
data/lib/rack/app/test.rb
CHANGED
@@ -60,8 +60,11 @@ module Rack::App::Test
|
|
60
60
|
raise("Can't find any path that fullfill the requirement")
|
61
61
|
end
|
62
62
|
|
63
|
-
|
64
|
-
|
63
|
+
return unless app_class.is_a?(Class) && app_class <= Rack::App
|
64
|
+
app_owned_endpoints = app_class.router.endpoints.select(&selector)
|
65
|
+
|
66
|
+
if matching_endpoints.length != app_owned_endpoints.length
|
67
|
+
raise('endpoint count not matching')
|
65
68
|
end
|
66
69
|
end
|
67
70
|
end
|