From d3eff64d19c845dc947a2872644eb514058db762 Mon Sep 17 00:00:00 2001 From: Jamie Winsor Date: Wed, 3 Aug 2011 20:33:13 -0700 Subject: Add rake tasks to initialize the testing environment Update README to reflect new functionality --- lib/refinery/tasks/testing.rake | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/refinery/tasks/testing.rake (limited to 'lib/refinery/tasks') 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 -- cgit v1.2.3