spec/support/setup.rb in apartment-1.1.0 vs spec/support/setup.rb in apartment-1.2.0

- old
+ new

@@ -20,11 +20,10 @@ end # before Apartment::Tenant.reload!(config) ActiveRecord::Base.establish_connection config - Apartment::Test.reset_table_names example.run # after Rails.configuration.database_configuration = {} @@ -33,11 +32,11 @@ Apartment.excluded_models.each do |model| klass = model.constantize Apartment.connection_class.remove_connection(klass) klass.clear_all_connections! + klass.reset_table_name end - Apartment::Test.reset_table_names Apartment.reset Apartment::Tenant.reload! end end end