Sha256: 5681a81d4ed047cd0fb70677fda818cb11692935f6ae561621243a52e7fc265d

Contents?: true

Size: 1.36 KB

Versions: 6

Compression:

Stored size: 1.36 KB

Contents

require File.dirname(__FILE__) + "/../../../spec_helper"

module Spec
  module Runner
    module Formatter
      describe BaseFormatter do
        subject { BaseFormatter.new(nil,nil) }
        it {should respond_to(:start                ).with(1).argument }
        it {should respond_to(:example_group_started).with(1).argument }
        it {should respond_to(:example_started      ).with(1).argument }
        # -3 indicates that one of the arguments is optional, with a default
        # value assigned. This is due to deprecated_pending_location. Once
        # that is removed, this should be changed to 2.
        it {should respond_to(:example_pending      ).with(-3).arguments}
        it {should respond_to(:example_passed       ).with(1).argument }
        it {should respond_to(:example_failed       ).with(3).arguments}
        it {should respond_to(:start_dump           ).with(0).arguments}
        it {should respond_to(:dump_failure         ).with(2).arguments}
        it {should respond_to(:dump_summary         ).with(4).arguments}
        it {should respond_to(:dump_pending         ).with(0).arguments}
        it {should respond_to(:close                ).with(0).arguments}
        
        it "deprecates add_example_group" do
          Spec.should_receive(:deprecate)
          subject.add_example_group(stub('example group'))
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec-1.2.7 spec/spec/runner/formatter/base_formatter_spec.rb
rspec-1.2.8 spec/spec/runner/formatter/base_formatter_spec.rb
rspec-1.2.3 spec/spec/runner/formatter/base_formatter_spec.rb
rspec-1.2.4 spec/spec/runner/formatter/base_formatter_spec.rb
rspec-1.2.5 spec/spec/runner/formatter/base_formatter_spec.rb
rspec-1.2.6 spec/spec/runner/formatter/base_formatter_spec.rb