Sha256: f7a2a9eef820f2e78ac9f4df54901f572718834d7803bf341164354e72f07dc0

Contents?: true

Size: 779 Bytes

Versions: 18

Compression:

Stored size: 779 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/helper')

describe "Locales" do
  Dir[File.expand_path("../../lib/padrino-core/locale/*.yml", __FILE__)].each do |file|
    base_original = YAML.load_file(file)
    name = File.basename(file, '.yml')
    it "should should have correct locale for #{name}" do
      base = base_original[name]['date']['formats']
      assert base['default'].present?
      assert base['short'].present?
      assert base['long'].present?
      assert base['only_day'].present?
      base = base_original[name]['date']
      assert base['day_names'].present?
      assert base['abbr_day_names'].present?
      assert base['month_names'].present?
      assert base['abbr_month_names'].present?
      assert base['order'].present?
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
padrino-core-0.12.9 test/test_locale.rb
padrino-core-0.12.8.1 test/test_locale.rb
padrino-core-0.13.3 test/test_locale.rb
padrino-core-0.12.8 test/test_locale.rb
padrino-core-0.12.7 test/test_locale.rb
padrino-core-0.12.6 test/test_locale.rb
padrino-core-0.13.2 test/test_locale.rb
padrino-core-0.13.1 test/test_locale.rb
padrino-core-0.13.1.beta1 test/test_locale.rb
padrino-core-0.13.0 test/test_locale.rb
padrino-core-0.13.0.beta3 test/test_locale.rb
padrino-core-0.13.0.beta2 test/test_locale.rb
padrino-core-0.12.5 test/test_locale.rb
padrino-core-0.13.0.beta1 test/test_locale.rb
padrino-core-0.12.4 test/test_locale.rb
padrino-core-0.12.3 test/test_locale.rb
padrino-core-0.12.2 test/test_locale.rb
padrino-core-0.12.1 test/test_locale.rb