lib/tasks/landable/pgtap.rake in landable-1.7.1.rc1 vs lib/tasks/landable/pgtap.rake in landable-1.8.0
- old
+ new
@@ -14,11 +14,10 @@
puts "\nPGTap not installed. Skipping DB unit tests"
puts "Reference 'http://pgtap.org/documentation.html#installation' for installation instructions."
else
# Load pgtap functions into database. Will not complain if already loaded.
ActiveRecord::Base.connection.execute(IO.read("#{dbdir}/pgtap/pgtap.sql"))
-
- sh "cd #{dbdir}/test && pg_prove -d #{ActiveRecord::Base.connection.current_database} #{tests}"
+ sh "cd #{Rails.root}/../../script && ./pgtap"
end
end
end
task :pgtap => 'pgtap:run'