Skip to content

Commit 40a070c

Browse files
committed
actionpack: add test for url_helpers include
1 parent 2af46cd commit 40a070c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

gems/actionpack/7.2/_test/test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ class BarController < ActionController::Base
77
end
88

99
ActionController::Base.new.render_to_string(template: 'foo', locals: { bar: 'baz' })
10+
11+
class FooService
12+
include ActionDispatch::Routing::RouteSet.new.url_helpers
13+
end

gems/actionpack/7.2/_test/test.rbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ end
33

44
class BarController < ActionController::Base
55
end
6+
7+
class FooService
8+
end

0 commit comments

Comments
 (0)