Sha256: 29c6b1db1d8aa3dc15bc27c4a77e187c939473fbc802af8d7a0a6713a98576f7

Contents?: true

Size: 499 Bytes

Versions: 8

Compression:

Stored size: 499 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "..", "test_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 RuntimeError
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
relevance-tarantula-0.0.5 test/relevance/tarantula/io_reporter_test.rb
relevance-tarantula-0.0.6 test/relevance/tarantula/io_reporter_test.rb
relevance-tarantula-0.0.7.1 test/relevance/tarantula/io_reporter_test.rb
relevance-tarantula-0.0.7 test/relevance/tarantula/io_reporter_test.rb
relevance-tarantula-0.0.8.0 test/relevance/tarantula/io_reporter_test.rb
relevance-tarantula-0.0.8.1 test/relevance/tarantula/io_reporter_test.rb
tarantula-0.0.5 test/relevance/tarantula/io_reporter_test.rb
tarantula-0.0.8.1 test/relevance/tarantula/io_reporter_test.rb