Method not available on this version
This method is only available on newer versions.
The first available version (v8.1.1) is shown here.
report(title, &block)
public
# File activesupport/lib/active_support/continuous_integration.rb, line 116
def report(title, &block)
Signal.trap("INT") { abort colorize(:error, "\nâ #{title} interrupted") }
ci = self.class.new
elapsed = timing { ci.instance_eval(&block) }
if ci.success?
echo "\nâ
#{title} passed in #{elapsed}", type: :success
else
echo "\nâ #{title} failed in #{elapsed}", type: :error
end
results.concat ci.results
ensure
Signal.trap("INT", "-")
end