test/support/factory.rb in ardb-0.27.3 vs test/support/factory.rb in ardb-0.28.0
- old
+ new
@@ -6,6 +6,21 @@
def self.migration_id
# identifiers need to be plural b/c af activesupport's pluralize
"#{Factory.string}_things"
end
+ def self.ardb_config
+ Ardb::Config.new.tap do |c|
+ c.adapter = Factory.string
+ c.database = Factory.string
+ c.encoding = Factory.string
+ c.host = Factory.string
+ c.port = Factory.integer
+ c.username = Factory.string
+ c.password = Factory.string
+ c.pool = Factory.integer
+ c.checkout_timeout = Factory.integer
+ c.min_messages = Factory.string
+ end
+ end
+
end