Sha256: 85a67c75b2ada5f3fbb7b0adf91651a4a5271239d39ab611688b68e35fc804a5

Contents?: true

Size: 1.33 KB

Versions: 32

Compression:

Stored size: 1.33 KB

Contents

require '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

32 entries across 32 versions & 11 rubygems

Version Path
rspec-instructure-1.3.3 spec/spec/runner/formatter/base_formatter_spec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/spec/spec/runner/formatter/base_formatter_spec.rb
rspec-1.3.2 spec/spec/runner/formatter/base_formatter_spec.rb
rspec-1.3.1 spec/spec/runner/formatter/base_formatter_spec.rb
rspec-1.3.1.rc spec/spec/runner/formatter/base_formatter_spec.rb
rspec-1.3.0 spec/spec/runner/formatter/base_formatter_spec.rb
hubbub-0.0.11 lib/vendor/plugins/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
hubbub-0.0.8 lib/vendor/plugins/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/spec/spec/runner/formatter/base_formatter_spec.rb
media-path-0.1.2 vendor/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
simple-templater-0.0.1.3 vendor/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
pupu-0.0.2.pre vendor/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
media-path-0.1.1.pre vendor/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
simple-templater-0.0.1.2 vendor/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
media-path-0.1.1 vendor/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
simple-templater-0.0.1.1 vendor/rspec/spec/spec/runner/formatter/base_formatter_spec.rb
pupu-0.0.2 vendor/rspec/spec/spec/runner/formatter/base_formatter_spec.rb