Sha256: 5323e19799e088eac27bef2792735971552bb1138ded3335e7fdca3f14817e0b
Contents?: true
Size: 836 Bytes
Versions: 6
Compression:
Stored size: 836 Bytes
Contents
require "spec_helper" describe GettextSimpleRails::Translators::DateTranslator do before do if !$translations_generated_for_date_translator $translations_generated_for_date_translator = true # Make it possible to call the Rake task. ::Dummy::Application.load_tasks # Clean up any existing translations. FileUtils.rm_r(GettextSimpleRails.translation_dir) if File.exists?(GettextSimpleRails.translation_dir) # Generate model translations so we can check them. ::Rake::Task["gettext_simple_rails:generate_translator_files"].invoke end end it "generates month names translations" do filepath = "#{GettextSimpleRails.translation_dir}/date_translator_translations.rb" cont = File.read(filepath) cont.should include "_('date.day_names.6')" end end
Version data entries
6 entries across 6 versions & 1 rubygems