Sha256: deac84aff50f84d599fa78c8402b5c22de9bf8b731340f1e31a00187e745a58b
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 Bytes
Contents
require 'abstract_db_create' 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 -d template1 -c '\\l'` assert output =~ /#{@db_name}/m end def test_rake_db_test_purge Rake::Task["db:create"].invoke Rake::Task["db:test:purge"].invoke end else def test_skipped end end def test_rake_db_create_does_not_load_full_environment Rake::Task["db:create"].invoke assert @rails_env_set assert !defined?(@full_environment_loaded) || !@full_environment_loaded end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-jdbc-adapter-1.2.8 | test/postgres_db_create_test.rb |
activerecord-jdbc-adapter-1.2.5 | test/postgres_db_create_test.rb |