lib/jets/spec_helpers.rb in jets-2.2.4 vs lib/jets/spec_helpers.rb in jets-2.2.5
- old
+ new
@@ -7,10 +7,10 @@
include Fixtures
include Controllers
end
end
-unless ENV["SKIP_MIGRATION_CHECK"] == "true"
+if File.exist?("#{Jets.root}/config/database.yml") && !ENV["SKIP_MIGRATION_CHECK"]
ActiveRecord::Tasks::DatabaseTasks.db_dir = "#{Jets.root}/db"
ActiveRecord::Migration.extend ActiveRecord::MigrationChecker
ActiveRecord::Migration.prepare_test_db
end