test/support/postgresql/setup_test_db.rb in ardb-0.29.2 vs test/support/postgresql/setup_test_db.rb in ardb-0.30.0

- old
+ new

@@ -9,21 +9,22 @@ ActiveRecord::Base.logger = @orig_ar_loggerF # we"re manually configuring ardb so we don"t need this to do anything ENV["ARDB_DB_FILE"] = File.join(TEST_SUPPORT_PATH, "require_test_db_file") - @ardb_config = Ardb::Config.new.tap do |c| - c.adapter = "postgresql" - c.database = "redding_ardb_test" - c.encoding = "unicode" - c.min_messages = "WARNING" + @ardb_config = + Ardb::Config.new.tap do |c| + c.adapter = "postgresql" + c.database = "redding_ardb_test" + c.encoding = "unicode" + c.min_messages = "WARNING" - c.logger = TEST_LOGGER - c.root_path = File.join(TEST_SUPPORT_PATH, "postgresql") - c.migrations_path = "migrations" - c.schema_path = "schema" - c.schema_format = :ruby - end + c.logger = TEST_LOGGER + c.root_path = File.join(TEST_SUPPORT_PATH, "postgresql") + c.migrations_path = "migrations" + c.schema_path = "schema" + c.schema_format = :ruby + end Assert.stub(Ardb, :config){ @ardb_config } Ardb.init(false) Ardb.adapter.drop_db