aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-01-07 14:39:23 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-01-07 14:49:12 -0800
commitc90572e3ab65e02933d204747645d0de83b00481 (patch)
tree7280cda88c8db67357c45cdcd94172a226b271e0 /actionpack
parent35fa00731329120fa1d0c2a9d66af6813203195a (diff)
downloadrails-c90572e3ab65e02933d204747645d0de83b00481.tar.gz
rails-c90572e3ab65e02933d204747645d0de83b00481.tar.bz2
rails-c90572e3ab65e02933d204747645d0de83b00481.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