spec/spec_helper.rb in with_model-2.1.4 vs spec/spec_helper.rb in with_model-2.1.5

- old
+ new

@@ -26,12 +26,10 @@ # WithModel requires ActiveRecord::Base.connection to be established. # If ActiveRecord already has a connection, as in a Rails app, this is unnecessary. require 'active_record' ActiveRecord::Base.establish_connection(adapter: adapter, database: ':memory:') -if defined?(I18n) && I18n.respond_to?(:enforce_available_locales=) - I18n.enforce_available_locales = true -end +I18n.enforce_available_locales = true if defined?(I18n) && I18n.respond_to?(:enforce_available_locales=) if ENV['LOGGER'] require 'logger' ActiveRecord::Base.logger = Logger.new($stdout) end