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