diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-10-18 00:04:47 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-10-18 00:04:47 +0000 |
commit | a0f74092a8fa1eff96de67b70c711fd8408a4ab5 (patch) | |
tree | 7aec41cc73de233594f9a56f6c4d9169d6911c1e /actionpack/test/template | |
parent | 301f721ef874935e46019fa8a60401d822b5fa78 (diff) | |
download | rails-a0f74092a8fa1eff96de67b70c711fd8408a4ab5.tar.gz rails-a0f74092a8fa1eff96de67b70c711fd8408a4ab5.tar.bz2 rails-a0f74092a8fa1eff96de67b70c711fd8408a4ab5.zip |
test deprecated instance variables using to_s instead of inspect which touches other ivars
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/deprecated_instance_variables_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/deprecated_instance_variables_test.rb b/actionpack/test/template/deprecated_instance_variables_test.rb index 277ecdf93d..c6931ae9c2 100644 --- a/actionpack/test/template/deprecated_instance_variables_test.rb +++ b/actionpack/test/template/deprecated_instance_variables_test.rb @@ -8,8 +8,8 @@ class DeprecatedViewInstanceVariablesTest < Test::Unit::TestCase ActionController::Base::DEPRECATED_INSTANCE_VARIABLES.each do |var| class_eval <<-end_eval - def old_#{var}_inline; render :inline => '<%= @#{var}.inspect %>' end - def new_#{var}_inline; render :inline => '<%= #{var}.inspect %>' end + def old_#{var}_inline; render :inline => '<%= @#{var}.to_s %>' end + def new_#{var}_inline; render :inline => '<%= #{var}.to_s %>' end def old_#{var}_partial; render :partial => '#{var}_ivar' end def new_#{var}_partial; render :partial => '#{var}_method' end end_eval |