Sha256: 3518a8349ce2d66537c6165d63b8d59d89e5791ce64ff0abc9db9ed8ceafdb31
Contents?: true
Size: 1.31 KB
Versions: 3
Compression:
Stored size: 1.31 KB
Contents
require File.dirname(__FILE__) + '/../../../spec_helper.rb' module Spec module Runner module Formatter describe "RdocFormatter" do before(:each) do @io = StringIO.new @formatter = RdocFormatter.new(@io) @formatter.dry_run = true end it "should produce no summary" do @formatter.dump_summary(nil, nil, nil, nil) @io.string.should be_empty end it "should produce nothing on start dump" do @formatter.start_dump @io.string.should be_empty end it "should push out context" do @formatter.add_behaviour(Spec::DSL::Description.new("context")) @io.string.should eql("# context\n") end it "should push out failed spec" do @formatter.example_failed(DSL::Example.new("spec"), 98, nil) @io.string.should eql("# * spec [98 - FAILED]\n") end it "should push out spec" do @formatter.example_passed(DSL::Example.new("spec")) @io.string.should eql("# * spec\n") end it "should push out not pending example" do @formatter.example_pending("behaviour", "example", "reason") @io.string.should eql("# * behaviour example [PENDING: reason]\n") end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rspec-1.0.7 | spec/spec/runner/formatter/rdoc_formatter_spec.rb |
rspec-1.0.6 | spec/spec/runner/formatter/rdoc_formatter_spec.rb |
rspec-1.0.8 | spec/spec/runner/formatter/rdoc_formatter_spec.rb |