Sha256: 8ba94878467a9a27fc754c049a98aa6435e05477b47779574f3f28aa360eba3e

Contents?: true

Size: 642 Bytes

Versions: 8

Compression:

Stored size: 642 Bytes

Contents

require 'spec_helper'

describe Lolita::I18n::Exceptions::MissingInterpolationArgument do 
  it "create new StandartError with custom message" do 
    error = Lolita::I18n::Exceptions::MissingInterpolationArgument.new(["arg1","arg2"])
    error.message.should eq("Translation should contain all these variables arg1, arg2")
  end
end

describe Lolita::I18n::Exceptions::TranslationDoesNotMatch do 
  it "should cretae new ArgumentError with custom message" do 
    error = Lolita::I18n::Exceptions::TranslationDoesNotMatch.new("translation", "original")
    error.message.should eq("Translation translation does not match original")
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lolita-i18n-0.5.6 spec/lolita-i18n/exceptions_spec.rb
lolita-i18n-0.5.5 spec/lolita-i18n/exceptions_spec.rb
lolita-i18n-0.5.3 spec/lolita-i18n/exceptions_spec.rb
lolita-i18n-0.5.2 spec/lolita-i18n/exceptions_spec.rb
lolita-i18n-0.5.1 spec/lolita-i18n/exceptions_spec.rb
lolita-i18n-0.4.3 spec/lolita-i18n/exceptions_spec.rb
lolita-i18n-0.4.2 spec/lolita-i18n/exceptions_spec.rb
lolita-i18n-0.4.0 spec/lolita-i18n/exceptions_spec.rb