mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #18759 from yuki24/remove-warning
✂️ warning from controller renderer test
This commit is contained in:
commit
e374db2371
1 changed files with 3 additions and 3 deletions
|
@ -65,10 +65,10 @@ class RendererTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
test 'same defaults from the same controller' do
|
||||
defaults = ->(controller) { controller.renderer.defaults }
|
||||
renderer_defaults = ->(controller) { controller.renderer.defaults }
|
||||
|
||||
assert defaults[AccountsController].equal? defaults[AccountsController]
|
||||
assert_not defaults[AccountsController].equal? defaults[CommentsController]
|
||||
assert renderer_defaults[AccountsController].equal? renderer_defaults[AccountsController]
|
||||
assert_not renderer_defaults[AccountsController].equal? renderer_defaults[CommentsController]
|
||||
end
|
||||
|
||||
test 'rendering with different formats' do
|
||||
|
|
Loading…
Reference in a new issue