# File lib/test/spec.rb, line 284 def method_missing(name, *args, &block) # This will make raise call Kernel.raise, and self.raise call _raise. return _raise(*args, &block) if name == :raise if @object.respond_to?("#{name}?") assert_block("#{name}? expected to be false. #{@message}") { not @object.__send__("#{name}?", *args) } else if @object.respond_to?(name) assert_block("#{name} expected to be false. #{@message}") { not @object.__send__("#{name}", *args) } else super end end end