mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #44337 from paulhenri-l/patch-1
Fix empty request inside helpers test
This commit is contained in:
commit
135f41d0b0
2 changed files with 5 additions and 1 deletions
|
@ -57,7 +57,7 @@ module ActionView
|
|||
include ActiveSupport::Testing::ConstantLookup
|
||||
|
||||
delegate :lookup_context, to: :controller
|
||||
attr_accessor :controller, :output_buffer, :rendered
|
||||
attr_accessor :controller, :request, :output_buffer, :rendered
|
||||
|
||||
module ClassMethods
|
||||
def tests(helper_class)
|
||||
|
|
|
@ -52,6 +52,10 @@ module ActionView
|
|||
assert params.is_a? ActionController::Parameters
|
||||
end
|
||||
|
||||
test "exposes request" do
|
||||
assert request.is_a? ActionDispatch::Request
|
||||
end
|
||||
|
||||
test "exposes view as _view for backwards compatibility" do
|
||||
assert_same _view, view
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue