test/test_helper.rb in faker-1.3.0 vs test/test_helper.rb in faker-1.4.0

- old
+ new

@@ -1,5 +1,12 @@ require 'test/unit' require 'rubygems' require 'yaml' YAML::ENGINE.yamler = 'syck' if defined? YAML::ENGINE require File.expand_path(File.dirname(__FILE__) + '/../lib/faker') + +# configure I18n +locales_path = File.expand_path(File.dirname(__FILE__) + '../lib/locales') +I18n.available_locales = Dir[locales_path + '/*'].map do |file| + file.split('.').first +end +I18n.enforce_available_locales = true