Permalink
Browse files

fix test suite to run against postgresql

  • Loading branch information...
1 parent 901a8e5 commit 7c0b6f5267d80cf479ff525719534529437e7af1 Doug Cole committed Mar 5, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/test_helper.rb
View
@@ -125,7 +125,11 @@ def teardown
end
-ActiveRecord::Base.establish_connection :adapter=>"mysql", :database=>"vanity_test"
+if ENV["DB"] == "postgres"
+ ActiveRecord::Base.establish_connection :adapter=>"postgresql", :database=>"vanity_test"
+else
+ ActiveRecord::Base.establish_connection :adapter=>"mysql", :database=>"vanity_test"
+end
ActiveRecord::Base.logger = $logger
if ENV["DB"] == "mysql" || ENV["DB"] == "postgres"

0 comments on commit 7c0b6f5

Please sign in to comment.