Sha256: 254b296df079be214a957d9211c7cb5bc7fa8fb8b23370b1e06f98ace00db685

Contents?: true

Size: 842 Bytes

Versions: 8

Compression:

Stored size: 842 Bytes

Contents

require 'spec_helper'

describe Rspec::Core::Runner do

  describe 'reporter' do

    it 'should return the configured formatter' do
      Rspec::Core::Runner.new.reporter.should == Rspec::Core.configuration.formatter
    end

  end  
  
  describe 'at_exit' do
    
    it 'should set an at_exit hook if none is already set' do
      Rspec::Core::Runner.stub!(:installed_at_exit?).and_return(false)
      Rspec::Core::Runner.should_receive(:at_exit)
      Rspec::Core::Runner.autorun
    end
    
    it 'should not set the at_exit hook if it is already set' do
      Rspec::Core::Runner.stub!(:installed_at_exit?).and_return(true)
      Rspec::Core::Runner.should_receive(:at_exit).never
      Rspec::Core::Runner.autorun
    end
    
  end
  
  describe 'placeholder' do
    
    # it "should "    
    # Rspec::Core::Runner.new
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.3 spec/rspec/core/runner_spec.rb
rspec-core-2.0.0.beta.2 spec/rspec/core/runner_spec.rb
rspec-core-2.0.0.beta.1 spec/rspec/core/runner_spec.rb
rspec-core-2.0.0.a10 spec/rspec/core/runner_spec.rb
rspec-core-2.0.0.a9 spec/rspec/core/runner_spec.rb
rspec-core-2.0.0.a8 spec/rspec/core/runner_spec.rb
rspec-core-2.0.0.a7 spec/rspec/core/runner_spec.rb
rspec-core-2.0.0.a6 spec/rspec/core/runner_spec.rb