aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-01-07 14:39:23 -0800
committerYehuda Katz <wycats@gmail.com>2009-01-09 00:14:28 -0800
commite3be52c1dd071b044de2c3cc3641f644888ded34 (patch)
tree86d76affbb6249dad6b18e03f16a4f0d6ec55267 /actionpack
parentcf09fa74f7a9d9895b9a2d0fc475864d7e4bb56e (diff)
downloadrails-e3be52c1dd071b044de2c3cc3641f644888ded34.tar.gz
rails-e3be52c1dd071b044de2c3cc3641f644888ded34.tar.bz2
rails-e3be52c1dd071b044de2c3cc3641f644888ded34.zip
Use instance_eval instead of adding an accessor to the class
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/layout_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/test/controller/layout_test.rb b/actionpack/test/controller/layout_test.rb
index c2efe9d00b..2f5e830fba 100644
--- a/actionpack/test/controller/layout_test.rb
+++ b/actionpack/test/controller/layout_test.rb
@@ -146,8 +146,7 @@ class LayoutExceptionRaised < ActionController::TestCase
def test_exception_raised_when_layout_file_not_found
@controller = SetsNonExistentLayoutFile.new
get :hello
- @response.template.class.module_eval { attr_accessor :exception }
- assert_equal ActionView::MissingTemplate, @response.template.exception.class
+ assert_kind_of ActionView::MissingTemplate, @response.template.instance_eval { @exception }
end
end