Sha256: 697c4a363f8f05c475b47cfee761f89918b3f5bbd422ccf452744556b430f3e7

Contents?: true

Size: 352 Bytes

Versions: 16

Compression:

Stored size: 352 Bytes

Contents

module ENVHelper
  def db?(type, example)
    example.metadata[type]
  end

  def postgres?(example)
    db?(:postgres, example)
  end

  def mysql?(example)
    db?(:mysql, example)
  end

  def sqlite?(example)
    db?(:sqlite, example)
  end

  def oracle?(example)
    db?(:oracle, example)
  end

  def jruby?
    defined? JRUBY_VERSION
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rom-sql-1.3.5 spec/support/env_helper.rb
rom-sql-1.3.4 spec/support/env_helper.rb
rom-sql-2.0.0.beta2 spec/support/env_helper.rb
rom-sql-2.0.0.beta1 spec/support/env_helper.rb
rom-sql-1.3.3 spec/support/env_helper.rb
rom-sql-1.3.2 spec/support/env_helper.rb
rom-sql-1.3.1 spec/support/env_helper.rb
rom-sql-1.3.0 spec/support/env_helper.rb
rom-sql-1.2.2 spec/support/env_helper.rb
rom-sql-1.2.1 spec/support/env_helper.rb
rom-sql-1.2.0 spec/support/env_helper.rb
rom-sql-1.1.2 spec/support/env_helper.rb
rom-sql-1.1.1 spec/support/env_helper.rb
rom-sql-1.1.0 spec/support/env_helper.rb
rom-sql-1.0.3 spec/support/env_helper.rb
rom-sql-1.0.2 spec/support/env_helper.rb