1
0
Fork 0
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:
Ryuta Kamizono 2022-02-09 17:33:40 +09:00 committed by GitHub
commit 135f41d0b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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)

View file

@ -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