Sha256: dfe3927380bf9af0fcdd67cac9038f9d774c57119c71aa2726239c799fe023f7

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

# Customizes the HTML report to include screenshots and browser source, which
# are saved in teardown defined in rspec_watir.rb
class WebTestHtmlFormatter < Spec::Runner::Formatter::HtmlFormatter
  def extra_failure_content
    @output.puts "        <div><a href=\"images/#{@current_spec_number}.png\"><img src=\"images/#{@current_spec_number}_thumb.png\"></a></div>"
    @output.puts "        <div><a href=\"images/#{@current_spec_number}.html\">HTML source</a></div>"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-0.7.5 ../web_spec/web_test_html_formatter.rb