aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/abstract/layouts_test.rb4
-rw-r--r--actionpack/test/controller/layout_test.rb2
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