diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-07-17 10:30:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-07-17 10:30:28 -0700 |
commit | 939f014bdf7f37602941b4b67fd2015ee26b1766 (patch) | |
tree | 9a0ec0ee94395944207a5788094fbba0522ffbee /activesupport | |
parent | d0ba994f54a4fcf72362535ec0692d4d228d8421 (diff) | |
parent | 414008f98e6eefb6efe14a93b6a969fbae3d339f (diff) | |
download | rails-939f014bdf7f37602941b4b67fd2015ee26b1766.tar.gz rails-939f014bdf7f37602941b4b67fd2015ee26b1766.tar.bz2 rails-939f014bdf7f37602941b4b67fd2015ee26b1766.zip |
Merge pull request #7076 from kennyj/fix_class_eval
Fix class_eval without __FILE__ and __LINE__.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/multibyte_chars_test.rb | 2 |
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 |