Sha256: 39e920384b60cea2980ea139743b028dc54a9bc0382a9493ceab8897a7bf393b
Contents?: true
Size: 983 Bytes
Versions: 4
Compression:
Stored size: 983 Bytes
Contents
require File.dirname(__FILE__) + '/../../../spec_helper.rb' module Spec module Runner module Formatter context "RdocFormatter" do setup do @io = StringIO.new @formatter = RdocFormatter.new(@io, true) end specify "should produce no summary" do @formatter.dump_summary(nil, nil, nil) @io.string.should_be_empty end specify "should produce nothing on start dump" do @formatter.start_dump @io.string.should_be_empty end specify "should push out context" do @formatter.add_context("context", :ignored) @io.string.should_eql("# context\n") end specify "should push out failed spec" do @formatter.spec_failed("spec", 98, nil) @io.string.should_eql("# * spec [98 - FAILED]\n") end specify "should push out spec" do @formatter.spec_passed("spec") @io.string.should_eql("# * spec\n") end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems