Sha256: 01036b369eaa60b7beb50d73a89665540b0f904b876a3b5767448126e1ffdd44
Contents?: true
Size: 754 Bytes
Versions: 2
Compression:
Stored size: 754 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/helper') class TestLocales < Test::Unit::TestCase Dir[File.expand_path("../../lib/padrino-helpers/locale/*.yml", __FILE__)].each do |file| base_original = YAML.load_file(file) name = File.basename(file, '.yml') should "should have correct locale for #{name}" do base = base_original[name]['number']['format'] assert !base['separator'].nil? assert !base['delimiter'].nil? assert !base['precision'].nil? base = base_original[name]['number']['currency']['format'] assert !base['format'].nil? assert !base['unit'].nil? assert !base['separator'].nil? assert !base['delimiter'].nil? assert !base['precision'].nil? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
padrino-helpers-0.10.2 | test/test_locale.rb |
padrino-helpers-0.10.1 | test/test_locale.rb |