lib/active_support/testing/declarative.rb in activesupport-3.0.pre vs lib/active_support/testing/declarative.rb in activesupport-3.0.0.rc
- old
+ new
@@ -5,10 +5,10 @@
def self.extended(klass)
klass.class_eval do
unless method_defined?(:describe)
def self.describe(text)
- class_eval <<-RUBY_EVAL
+ class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
def self.name
"#{text}"
end
RUBY_EVAL
end