class Simplexframe::SimplexframeFormatter

Public Class Methods

new(output) click to toggle source
Calls superclass method
# File lib/simplexframe/generators/simplexframe/config/simplexframe_formatter.rb, line 6
def initialize(output)
        output = File.new(File.expand_path(File.join('.', 'app', 'reports', "#{Time.now.strftime("%Y%m%d_%H%M%S")}.html")), 'w')
        super(output)
        @printer.class.send(:define_method, 'puts') do |what|
                @output.puts what
        end #define_method
end

Public Instance Methods

example_failed(example) click to toggle source
Calls superclass method
# File lib/simplexframe/generators/simplexframe/config/simplexframe_formatter.rb, line 14
def example_failed(example)
        super(example)
        if $navi
                failed_url = $navi.url rescue $navi.current_url
                @printer.puts "<a target=\"_blank\" href=\"#{failed_url}\">failed url is [#{failed_url}]</a>" 
                @printer.puts '<br />'
                @printer.flush
        end #if
end