Sha256: 79c7db29a0fb50f440d98cb61c9ff93307ed840cdd05045410c9491ee7d5fdaa

Contents?: true

Size: 456 Bytes

Versions: 11

Compression:

Stored size: 456 Bytes

Contents

require "spec_helper"

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

11 entries across 11 versions & 2 rubygems

Version Path
codez-tarantula-0.5.5 spec/relevance/tarantula/io_reporter_spec.rb
codez-tarantula-0.5.4 spec/relevance/tarantula/io_reporter_spec.rb
codez-tarantula-0.5.3 spec/relevance/tarantula/io_reporter_spec.rb
codez-tarantula-0.5.1 spec/relevance/tarantula/io_reporter_spec.rb
codez-tarantula-0.5.0 spec/relevance/tarantula/io_reporter_spec.rb
tarantula-0.5.1 spec/relevance/tarantula/io_reporter_spec.rb
tarantula-0.5.0 spec/relevance/tarantula/io_reporter_spec.rb
tarantula-0.4.3 spec/relevance/tarantula/io_reporter_spec.rb
tarantula-0.4.2 spec/relevance/tarantula/io_reporter_spec.rb
tarantula-0.4.1 spec/relevance/tarantula/io_reporter_spec.rb
tarantula-0.4.0 spec/relevance/tarantula/io_reporter_spec.rb