aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/multibyte_chars_test.rb
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-07-18 01:16:55 +0900
committerkennyj <kennyj@gmail.com>2012-07-18 01:16:55 +0900
commit414008f98e6eefb6efe14a93b6a969fbae3d339f (patch)
treeb4c3e39da37f542d6405f3434c26ea8e57720bab /activesupport/test/multibyte_chars_test.rb
parent15bfaa3d13f84c689f9182c0be658ddde019e572 (diff)
downloadrails-414008f98e6eefb6efe14a93b6a969fbae3d339f.tar.gz
rails-414008f98e6eefb6efe14a93b6a969fbae3d339f.tar.bz2
rails-414008f98e6eefb6efe14a93b6a969fbae3d339f.zip
Fix class_eval without __FILE__ and __LINE__.
Diffstat (limited to 'activesupport/test/multibyte_chars_test.rb')
-rw-r--r--activesupport/test/multibyte_chars_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/multibyte_chars_test.rb b/activesupport/test/multibyte_chars_test.rb
index a8d69d0ec3..ef289692bc 100644
--- a/activesupport/test/multibyte_chars_test.rb
+++ b/activesupport/test/multibyte_chars_test.rb
@@ -110,7 +110,7 @@ class MultibyteCharsUTF8BehaviourTest < ActiveSupport::TestCase
end
%w{capitalize downcase lstrip reverse rstrip swapcase upcase}.each do |method|
- class_eval(<<-EOTESTS)
+ class_eval(<<-EOTESTS, __FILE__, __LINE__ + 1)
def test_#{method}_bang_should_return_self_when_modifying_wrapped_string
chars = ' él piDió Un bUen café '
assert_equal chars.object_id, chars.send("#{method}!").object_id