Sha256: 23e5e2f457294a37215e90634ec8c7840249faac0972e4677be48f59b5efe477
Contents?: true
Size: 650 Bytes
Versions: 4
Compression:
Stored size: 650 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"]) expect(error.message).to 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") expect(error.message).to eq("Translation translation does not match original") end end
Version data entries
4 entries across 4 versions & 1 rubygems