-
Notifications
You must be signed in to change notification settings - Fork 55
Description
I have a bit of code that is render-ing a template like so:
render file: Rails.root.join('public', 'webpack_assets', 'index.html'), layout: false
This was previously being tested (with Rails 5) with an
assert_template(file: Rails.root.join('public', 'webpack_assets', 'index.html'))
This no longer works in Rails 6.1.1.4 (the assert_template
actual is '[]' instead of the value of Rails.root.join('public', 'webpack_assets', 'index.html')
). It seems like the payload containing the :identifier key falls into the subscription for render_template.action_view
where it appears to be expected in the !render_template.action_view
subscription.
Hopefully this makes sense, sorry for not providing more details, haven't gotten a chance to dig in more yet. If I get a moment I'll validate the change in Rails and propose a fix.