Sha256: 95cf08bb53b1e736863d6c7aa658028e9ef7bd65f334936027f265e0b04027bd

Contents?: true

Size: 527 Bytes

Versions: 14

Compression:

Stored size: 527 Bytes

Contents

require File.expand_path(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

14 entries across 14 versions & 5 rubygems

Version Path
relevance-tarantula-0.1.6 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.1.7 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.1.8 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.2.0 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.2.1 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.3.2 examples/relevance/tarantula/io_reporter_example.rb
relevance-tarantula-0.3.3 examples/relevance/tarantula/io_reporter_example.rb
romanbsd-tarantula-0.1.8 examples/relevance/tarantula/io_reporter_example.rb
romanbsd-tarantula-0.2.0 examples/relevance/tarantula/io_reporter_example.rb
tarantula-rails3-0.3.3 examples/relevance/tarantula/io_reporter_example.rb
panmind-tarantula-0.3.3 examples/relevance/tarantula/io_reporter_example.rb
tarantula-0.3.3 examples/relevance/tarantula/io_reporter_example.rb
tarantula-0.1.8 examples/relevance/tarantula/io_reporter_example.rb
tarantula-0.2.0 examples/relevance/tarantula/io_reporter_example.rb