diff options
author | Anupam Choudhury <contact2anupam@gmail.com> | 2013-03-28 15:58:03 +0530 |
---|---|---|
committer | Anupam Choudhury <contact2anupam@gmail.com> | 2013-03-28 15:58:03 +0530 |
commit | d18e8b1a3839c5c214e96c7e37e0d86febe15f99 (patch) | |
tree | 0c77375b559ebf04b9db637eb222f2de0bff1f61 /actionpack/test | |
parent | 341e61154715c7e0f9f4eee7dd90580202735db7 (diff) | |
download | rails-d18e8b1a3839c5c214e96c7e37e0d86febe15f99.tar.gz rails-d18e8b1a3839c5c214e96c7e37e0d86febe15f99.tar.bz2 rails-d18e8b1a3839c5c214e96c7e37e0d86febe15f99.zip |
Refactored to remove unused variable
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/abstract/layouts_test.rb | 4 | ||||
-rw-r--r-- | actionpack/test/controller/layout_test.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/abstract/layouts_test.rb b/actionpack/test/abstract/layouts_test.rb index 70688d7267..92baad4523 100644 --- a/actionpack/test/abstract/layouts_test.rb +++ b/actionpack/test/abstract/layouts_test.rb @@ -72,7 +72,7 @@ module AbstractControllerTests end class WithProc < Base - layout proc { |c| "overwrite" } + layout proc { "overwrite" } def index render :template => ActionView::Template::Text.new("Hello proc!") @@ -80,7 +80,7 @@ module AbstractControllerTests end class WithProcReturningNil < Base - layout proc { |c| nil } + layout proc { nil } def index render template: ActionView::Template::Text.new("Hello nil!") diff --git a/actionpack/test/controller/layout_test.rb b/actionpack/test/controller/layout_test.rb index a61a1fe99d..34304cf640 100644 --- a/actionpack/test/controller/layout_test.rb +++ b/actionpack/test/controller/layout_test.rb @@ -103,7 +103,7 @@ class HasNilLayoutSymbol < LayoutTest end class HasNilLayoutProc < LayoutTest - layout proc { |c| nil } + layout proc { nil } end class PrependsViewPathController < LayoutTest |