spec/spec_helper.rb in aasm-5.1.0 vs spec/spec_helper.rb in aasm-5.1.1

- old
+ new

@@ -11,10 +11,11 @@ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) $LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))) require 'aasm' require 'rspec' require 'aasm/rspec' +require 'i18n' require 'pry' # require 'ruby-debug'; Debugger.settings[:autoeval] = true; debugger; rubys_debugger = 'annoying' # require 'ruby-debug/completion' # require 'pry' @@ -32,5 +33,9 @@ # custom spec helpers Dir[File.dirname(__FILE__) + "/spec_helpers/**/*.rb"].sort.each { |f| require File.expand_path(f) } # example model classes Dir[File.dirname(__FILE__) + "/models/*.rb"].sort.each { |f| require File.expand_path(f) } + +I18n.load_path << 'spec/en.yml' +I18n.enforce_available_locales = false +I18n.default_locale = :en