Sha256: 419be0ee748b4fc05d191375f8c28333c017096a6d05a01eaaade9aea1dff0cf

Contents?: true

Size: 509 Bytes

Versions: 8

Compression:

Stored size: 509 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "..", "example_helper.rb")

describe 'Relevance::Tarantula::IOReporter' do
  it "reports errors to stderr and then raises" do
    reporter = Relevance::Tarantula::IOReporter.new($stderr)
    reporter.report stub(:code => "404", :url => "/uh-oh", :success => false)
    $stderr.expects(:puts).with("****** FAILURES")
    $stderr.expects(:puts).with("404: /uh-oh")
    lambda {reporter.finish_report("test_user_pages")}.should raise_error(RuntimeError)
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
relevance-tarantula-0.1.0 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.1.1 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.1.2 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.1.3 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.1.4 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.1.5 examples/relevance/tarantula/io_reporter_example.rb
tarantula-0.1.4 examples/relevance/tarantula/io_reporter_example.rb
tarantula-0.1.5 examples/relevance/tarantula/io_reporter_example.rb