spec/cupcakinator/errors_spec.rb in cupcakinator-1.1.2 vs spec/cupcakinator/errors_spec.rb in cupcakinator-2.0.0

- old
+ new

@@ -1,20 +1,20 @@ require 'spec_helper' describe Cupcakinator::ConfigFileNotFoundError do it 'should call I18n with args filename and options' do - I18n.should_receive(:t).with(an_instance_of(String), hash_including(:filename, :options)) + expect(I18n).to receive(:t).with(an_instance_of(String), hash_including(:filename, :options)) Cupcakinator::ConfigFileNotFoundError.new('foo', 'bar') end end describe Cupcakinator::ConfigFileInvalidError do it 'should call I18n with args filename and message' do - I18n.should_receive(:t).with(an_instance_of(String), hash_including(:filename, :message)) + expect(I18n).to receive(:t).with(an_instance_of(String), hash_including(:filename, :message)) Cupcakinator::ConfigFileInvalidError.new('foo', 'bar') end end