Sha256: 8e8b44e0e407a7fdd4a8a5e715db31874d5f148b2630fa04b2ba87b8a522d0a4

Contents?: true

Size: 695 Bytes

Versions: 4

Compression:

Stored size: 695 Bytes

Contents

require 'assert/factory'

module Factory
  extend Assert::Factory

  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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ardb-0.28.3 test/support/factory.rb
ardb-0.28.2 test/support/factory.rb
ardb-0.28.1 test/support/factory.rb
ardb-0.28.0 test/support/factory.rb