Sha256: 9f2edf5609a763c31a3da1ae181c3e17eb2db5d3d59f931731b40281bbcd8bd9
Contents?: true
Size: 782 Bytes
Versions: 6
Compression:
Stored size: 782 Bytes
Contents
dir = File.dirname(__FILE__) require "#{dir}/../../example_helper" describe RR, " backtrace tweaking" do it "hides rr library from the backtrace by default" do output = StringIO.new("") backtrace_tweaker = ::Spec::Runner::QuietBacktraceTweaker.new formatter = ::Spec::Runner::Formatter::BaseTextFormatter.new(output) reporter = ::Spec::Runner::Reporter.new([formatter], backtrace_tweaker) behaviour = ::Spec::DSL::Behaviour.new("example") {} subject = @subject behaviour.it("hides RR framework in backtrace") do mock(subject).foobar() RR::Space::instance.verify_double(subject, :foobar) end reporter.add_behaviour(behaviour) behaviour.run(reporter) reporter.dump output.string.should_not include("lib/rr") end end
Version data entries
6 entries across 6 versions & 1 rubygems