Sha256: af913f84c05bac4e9c35783a33359b96c2a2b3dfc02d80fcaf958cbc0df48210

Contents?: true

Size: 391 Bytes

Versions: 15

Compression:

Stored size: 391 Bytes

Contents

require 'abstract_db_create'
require 'db/postgres'

class PostgresDbCreateTest < Test::Unit::TestCase
  include AbstractDbCreate

  def db_config
    POSTGRES_CONFIG
  end

  if find_executable?("psql")
    def test_rake_db_create
      Rake::Task["db:create"].invoke
      output = `psql -c '\\l'`
      assert output =~ /#{@db_name}/m
    end
  else
    def test_skipped
    end
  end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
kb-activerecord-jdbc-adapter-0.9.7.1-java test/postgres_db_create_test.rb
kb-activerecord-jdbc-adapter-1.0.0.beta1-java test/postgres_db_create_test.rb
activerecord-jdbc-adapter-1.0.0.beta1-java test/postgres_db_create_test.rb
activerecord-jdbc-adapter-0.9.7-java test/postgres_db_create_test.rb
activerecord-jdbc-adapter-0.9.6-java test/postgres_db_create_test.rb
activerecord-jdbc-adapter-0.9.5-java test/postgres_db_create_test.rb
activerecord-jdbc-adapter-0.9.4-java test/postgres_db_create_test.rb
activerecord-jdbc-adapter-0.9.3-java test/postgres_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.6 test/postgres_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.5 test/postgres_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.4 test/postgres_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.3 test/postgres_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.2 test/postgres_db_create_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.1 test/postgres_db_create_test.rb
activerecord-jdbc-adapter-0.9.2 test/postgres_db_create_test.rb