aboutsummaryrefslogtreecommitdiffstats
path: root/lib/refinery/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'lib/refinery/tasks')
-rw-r--r--lib/refinery/tasks/testing.rake21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/refinery/tasks/testing.rake b/lib/refinery/tasks/testing.rake
new file mode 100644
index 0000000..7b71639
--- /dev/null
+++ b/lib/refinery/tasks/testing.rake
@@ -0,0 +1,21 @@
+namespace :refinery do
+ namespace :testing do
+
+ desc "Initialize the testing environment"
+ task :setup => [
+ :init_dummy_app,
+ :init_test_database
+ ]
+
+ task :init_dummy_app do
+ system "git submodule init"
+ system "git submodule update"
+ end
+
+ task :init_test_database => [
+ 'app:db:migrate',
+ 'app:db:test:prepare'
+ ]
+
+ end
+end