1
0
Fork 0
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:
Yves Senn 2015-02-01 11:44:12 +01:00
commit e374db2371

View file

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