Sha256: 71a22272a3539c17d8fd854a278cc2f0e3a3aadd6ccca993a2f9af2da4cfe57e
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
require "spec_helper" describe AwesomeTranslations::Handlers::GlobalHandler do let(:global_handler) { AwesomeTranslations::Handlers::GlobalHandler.new } let(:translations) { global_handler.groups.first.translations.to_a } let(:yes_translation) { translations.select { |translation| translation.key == "yes" }.first } it "finds the right translations" do expect(translations.length).to eq 2 end it "reads the keys right" do expect(yes_translation.key).to eq "yes" end it "sets the correct translation path" do expect(yes_translation.dir).to eq "#{Rails.root}/config/locales/awesome_translations" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
awesome_translations-0.0.25 | spec/handlers/global_handler_spec.rb |