lib/ae/assert.rb in ae-1.7.0 vs lib/ae/assert.rb in ae-1.7.1
- old
+ new
@@ -57,10 +57,10 @@
alias_method :assert!, :refute
# Directly raise an Assertion failure.
def flunk(message=nil, backtrace=nil)
#Assertor.new(self, :backtrace=>caller).assert(false, message)
- Assertor.assert(false, message, caller)
+ Assertor.assert(false, message, backtrace || caller)
end
end
end