aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-09-29 11:18:31 +0200
committerJosé Valim <jose.valim@gmail.com>2010-09-29 11:18:31 +0200
commit14f9904e0fc6d8a1e5627ac64c4b5b14e95177c5 (patch)
tree7bd869d61e99d58dbd374a5d2ce344139a784551 /actionpack/test/abstract
parent0bbf9029e8089356aed0e3be2f859d56951a89cf (diff)
downloadrails-14f9904e0fc6d8a1e5627ac64c4b5b14e95177c5.tar.gz
rails-14f9904e0fc6d8a1e5627ac64c4b5b14e95177c5.tar.bz2
rails-14f9904e0fc6d8a1e5627ac64c4b5b14e95177c5.zip
Avoid (@_var ||= nil) pattern by using initialize methods and ensuring everyone calls super as expected.
Diffstat (limited to 'actionpack/test/abstract')
-rw-r--r--actionpack/test/abstract/layouts_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/abstract/layouts_test.rb b/actionpack/test/abstract/layouts_test.rb
index f580ad40f7..5ed6aa68b5 100644
--- a/actionpack/test/abstract/layouts_test.rb
+++ b/actionpack/test/abstract/layouts_test.rb
@@ -225,7 +225,7 @@ module AbstractControllerTests
end
test "when the layout is specified as a symbol and the method doesn't exist, raise an exception" do
- assert_raises(NoMethodError) { WithSymbolAndNoMethod.new.process(:index) }
+ assert_raises(NameError) { WithSymbolAndNoMethod.new.process(:index) }
end
test "when the layout is specified as a symbol and the method returns something besides a string/false/nil, raise an exception" do