diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-01-07 14:39:23 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-01-09 00:14:28 -0800 |
commit | e3be52c1dd071b044de2c3cc3641f644888ded34 (patch) | |
tree | 86d76affbb6249dad6b18e03f16a4f0d6ec55267 | |
parent | cf09fa74f7a9d9895b9a2d0fc475864d7e4bb56e (diff) | |
download | rails-e3be52c1dd071b044de2c3cc3641f644888ded34.tar.gz rails-e3be52c1dd071b044de2c3cc3641f644888ded34.tar.bz2 rails-e3be52c1dd071b044de2c3cc3641f644888ded34.zip |
Use instance_eval instead of adding an accessor to the class
-rw-r--r-- | actionpack/test/controller/layout_test.rb | 3 |
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 |