Permalink
Browse files

fix for Travis CI, forgot to assert existence of database.yml

  • Loading branch information...
1 parent a53fbc7 commit acf99082f1bcaa48f8c8e71b7b294c55394de661 @jmgarnier jmgarnier committed Jun 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/parallel_tests.rake
@@ -19,7 +19,7 @@ namespace :parallel do
def parallel_tests_setup?
require 'rails/version'
database_config = File.join "spec", "rails", "rails-#{Rails::VERSION::STRING}", "config", "database.yml"
- File.read(database_config).include?("TEST_ENV_NUMBER")
+ File.exists?(database_config) && File.read(database_config).include?("TEST_ENV_NUMBER")
end
desc "Setup parallel_tests DBs"

0 comments on commit acf9908

Please sign in to comment.