Skip to content

Commit 0aa3e1e

Browse files
committed
Fix unit test for rails routes serializer
1 parent 12a1d9f commit 0aa3e1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/datadog/appsec/api_security/endpoint_collection/rails_routes_serializer_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ def build_route_double(method:, path:, is_dispatcher: true)
6464
path: instance_double(
6565
'ActionDispatch::Journey::Path::Pattern',
6666
spec: path
67+
),
68+
app: instance_double(
69+
'ActionDispatch::Routing::RouteSet::Dispatcher',
70+
rack_app: instance_double(
71+
'ActionDispatch::Routing::RouteSet::Dispatcher'
72+
)
6773
)
6874
)
6975
end

0 commit comments

Comments
 (0)