Sha256: 2bca7a4d2ccd527520332cad2b09d74b458a759d23ab3c6af04619a1080b91eb
Contents?: true
Size: 881 Bytes
Versions: 2
Compression:
Stored size: 881 Bytes
Contents
# encoding: utf-8 # # This file is part of the bovem gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>. # Licensed under the MIT license, which can be found at https://choosealicense.com/licenses/mit. # require "spec_helper" describe Bovem::I18n do let(:subject) { Bovem::I18n.new(:it, root: "bovem.shell", path: Bovem::Application::LOCALE_ROOT) } describe "#method_missing" do it "should find translation and format them" do expect(subject.copy_move_single_to_directory("A", "B", "C")).to eq("Impossibile eseguire A del file {mark=bright}B{/mark} in {mark=bright}C{/mark} perché è attualmente una cartella.") end it "should complain about missing translation" do expect { subject.foo }.to raise_error(Lazier::Exceptions::MissingTranslation, "Unable to load the translation \"bovem.shell.foo\" for the locale \"it\".") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bovem-4.0.3 | spec/bovem/i18n_spec.rb |
bovem-4.0.2 | spec/bovem/i18n_spec.rb |