[DRE-commits] [schleuder] 01/03: debian/ruby-tests.rake: Load correct Rakefile, ensure clean environment
Georg Faerber
georg-alioth-guest at moszumanska.debian.org
Tue Dec 13 18:02:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
georg-alioth-guest pushed a commit to branch master
in repository schleuder.
commit c8cf86a32c872f7bf8675ba11a4842d58764163e
Author: Georg Faerber <georg at riseup.net>
Date: Tue Dec 13 16:40:46 2016 +0100
debian/ruby-tests.rake: Load correct Rakefile, ensure clean environment
---
debian/ruby-tests.rake | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 02dc50b..5388ae0 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -3,8 +3,11 @@ require 'gem2deb/rake/spectask'
task :setup do
ENV['SCHLEUDER_ENV'] = 'test'
ENV['SCHLEUDER_CONFIG'] = 'spec/schleuder.yml'
- `rake db:create`
- `rake db:schema:load`
+ # Remove database to ensure clean environment
+ `rm db/test.sqlite3 >/dev/null 2>&1 || true`
+ # Set up database
+ `rake -f debian/Rakefile db:create`
+ `rake -f debian/Rakefile db:schema:load`
end
task :run_tests do
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/schleuder.git
More information about the Pkg-ruby-extras-commits
mailing list