Sha256: 4e48c712c94178772ac63aeb56da67c9dcfa3f1eec2cc748a05acb88276d1911

Contents?: true

Size: 694 Bytes

Versions: 2

Compression:

Stored size: 694 Bytes

Contents

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

describe "Locales" do
  Dir[File.expand_path('../lib/padrino-core/locale/*.yml', __dir__)].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']
      assert base['short']
      assert base['long']
      assert base['only_day']
      base = base_original[name]['date']
      assert base['day_names']
      assert base['abbr_day_names']
      assert base['month_names']
      assert base['abbr_month_names']
      assert base['order']
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
padrino-core-0.16.0.pre3 test/test_locale.rb
padrino-core-0.16.0.pre2 test/test_locale.rb