spec/rake/funnel/support/mapper_spec.rb in rake-funnel-0.0.6.pre vs spec/rake/funnel/support/mapper_spec.rb in rake-funnel-0.1.0.pre

- old
+ new

@@ -44,16 +44,16 @@ end end context 'unknown mapper' do it 'should fail' do - expect { described_class.new(:unknown) }.to raise_error(/^Something went wrong while creating the 'unknown' mapper/) + expect { described_class.new(:unknown) }.to raise_error(NameError) end end context 'nil mapper' do it 'should fail' do - expect { described_class.new(nil) }.to raise_error(/You cannot use a 'nil' mapper. Available mappers are: \w+/) + expect { described_class.new(nil) }.to raise_error(/You cannot use the 'nil' mapper style. Available mappers are:/) end end context 'custom mapper' do it 'should take custom mapper instance' do