AC: skip PG adapter tests if the db isn't available

This commit is contained in:
Jeremy Daer 2016-03-03 23:58:46 -07:00
parent eefcc78f7a
commit d448918027
1 changed files with 7 additions and 0 deletions

View File

@ -15,8 +15,15 @@ class PostgresqlAdapterTest < ActionCable::TestCase
local_config = ARTest.config['arunit']
database_config.update local_config if local_config
end
ActiveRecord::Base.establish_connection database_config
begin
ActiveRecord::Base.connection
rescue
skip "Couldn't connect to PostgreSQL: #{database_config.inspect}"
end
super
end