From 1bb1b9e8cbf7a7b8bbac4ccf970eb8d9891a1831 Mon Sep 17 00:00:00 2001 From: Yuki Nishijima Date: Sat, 31 Jan 2015 17:48:55 -0800 Subject: :scissors: warning from controller renderer test rails/actionpack/test/controller/renderer_test.rb:89: warning: possible reference to past scope - defaults --- actionpack/test/controller/renderer_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack') diff --git a/actionpack/test/controller/renderer_test.rb b/actionpack/test/controller/renderer_test.rb index 6d5508323b..b55a25430b 100644 --- a/actionpack/test/controller/renderer_test.rb +++ b/actionpack/test/controller/renderer_test.rb @@ -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 -- cgit v1.2.3