Sha256: d70a549f7134e66504baf1bc4d22bee4f993b9c5999f06e9d263e7fc4de004d0

Contents?: true

Size: 571 Bytes

Versions: 5

Compression:

Stored size: 571 Bytes

Contents

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))
    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))
    Cupcakinator::ConfigFileInvalidError.new('foo', 'bar')
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cupcakinator-1.1.2 spec/cupcakinator/errors_spec.rb
cupcakinator-1.1.1 spec/cupcakinator/errors_spec.rb
cupcakinator-1.1.0 spec/cupcakinator/errors_spec.rb
cupcakinator-1.0.1 spec/cupcakinator/errors_spec.rb
cupcakinator-1.0.0 spec/cupcakinator/errors_spec.rb