Sha256: 9d34ea900caeed6133de81fb1708cba149dae57695096262a0dd4013af15bd4c

Contents?: true

Size: 681 Bytes

Versions: 57

Compression:

Stored size: 681 Bytes

Contents

require 'spec_helper'

module RSpec::Core
  describe CommandLineConfiguration do
    describe '#run' do
      context 'given autotest command' do
        let(:config) { CommandLineConfiguration.new('autotest') }

        it 'calls Autotest.generate' do
          CommandLineConfiguration::Autotest.should_receive(:generate)
          config.run
        end
      end

      context 'given unsupported command' do
        let(:config) { CommandLineConfiguration.new('unsupported') }

        it 'raises ArgumentError' do
          lambda { config.run }.should(
            raise_error(ArgumentError, /"unsupported" is not valid/)
          )
        end
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 6 rubygems

Version Path
horseman-0.0.4 vendor/ruby/1.9.1/gems/rspec-core-2.7.1/spec/rspec/core/command_line_configuration_spec.rb
horseman-0.0.3 vendor/ruby/1.9.1/gems/rspec-core-2.7.1/spec/rspec/core/command_line_configuration_spec.rb
horseman-0.0.2 vendor/ruby/1.9.1/gems/rspec-core-2.7.1/spec/rspec/core/command_line_configuration_spec.rb
nutshell-crm-0.0.6.alpha vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/command_line_configuration_spec.rb
nutshell-crm-0.0.5 vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/command_line_configuration_spec.rb
nutshell-crm-0.0.4 vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/command_line_configuration_spec.rb
nutshell-crm-0.0.3 vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/command_line_configuration_spec.rb
nutshell-crm-0.0.2 vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/command_line_configuration_spec.rb
nutshell-crm-0.0.1 vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/command_line_configuration_spec.rb
rspec-core-2.8.0.rc1 spec/rspec/core/command_line_configuration_spec.rb
rspec-core-2.7.1 spec/rspec/core/command_line_configuration_spec.rb
rspec-core-2.7.0 spec/rspec/core/command_line_configuration_spec.rb
rspec-core-2.7.0.rc1 spec/rspec/core/command_line_configuration_spec.rb
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/command_line_configuration_spec.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/command_line_configuration_spec.rb
rspec-core-2.6.4 spec/rspec/core/command_line_configuration_spec.rb
rspec-core-2.6.3 spec/rspec/core/command_line_configuration_spec.rb
rspec-core-2.6.3.beta1 spec/rspec/core/command_line_configuration_spec.rb
rspec-core-2.6.2.rc spec/rspec/core/command_line_configuration_spec.rb
rspec-core-2.6.0 spec/rspec/core/command_line_configuration_spec.rb