Sha256: 5f2fa4fae28932e468301e01b6aec4d55eb20c2f4823aa26a2becee6aea81aa9
Contents?: true
Size: 506 Bytes
Versions: 3
Compression:
Stored size: 506 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "..", "test_helper.rb") include Relevance::Tarantula describe 'Relevance::Tarantula::IOReporter' do it "reports errors to stderr and then raises" do reporter = 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
3 entries across 3 versions & 1 rubygems