aboutsummaryrefslogtreecommitdiffstats
path: root/railties
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 /railties
parent15bfaa3d13f84c689f9182c0be658ddde019e572 (diff)
downloadrails-414008f98e6eefb6efe14a93b6a969fbae3d339f.tar.gz
rails-414008f98e6eefb6efe14a93b6a969fbae3d339f.tar.bz2
rails-414008f98e6eefb6efe14a93b6a969fbae3d339f.zip
Fix class_eval without __FILE__ and __LINE__.
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators_test.rb b/railties/test/generators_test.rb
index ad2f85a5ff..027d8eb9b7 100644
--- a/railties/test/generators_test.rb
+++ b/railties/test/generators_test.rb
@@ -167,7 +167,7 @@ class GeneratorsTest < Rails::Generators::TestCase
def test_developer_options_are_overwriten_by_user_options
Rails::Generators.options[:with_options] = { :generate => false }
- self.class.class_eval <<-end_eval
+ self.class.class_eval(<<-end_eval, __FILE__, __LINE__ + 1)
class WithOptionsGenerator < Rails::Generators::Base
class_option :generate, :default => true
end