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