Sha256: e10ef542a7842688a43f2c90331dae1ec5e535eac5b4d5554a855b972854b954

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

require 'spec_helper'

describe Cupcakinator::ConfigFileNotFoundError do

  it 'should call I18n with args filename and options' do
    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
    expect(I18n).to receive(:t).with(an_instance_of(String), hash_including(:filename, :message))
    Cupcakinator::ConfigFileInvalidError.new('foo', 'bar')
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cupcakinator-2.0.0 spec/cupcakinator/errors_spec.rb