Sha256: 5ea9ae2143da9ca90ae801556c1a155409c70a47cb24857f64fc507a4ce56ee4
Contents?: true
Size: 625 Bytes
Versions: 22
Compression:
Stored size: 625 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 translations.length.should eq 2 end it "reads the keys right" do yes_translation.key.should eq "yes" end it "sets the correct translation path" do yes_translation.dir.should eq "#{Rails.root}/config/locales/awesome_translations" end end
Version data entries
22 entries across 22 versions & 1 rubygems