aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJamie Winsor <jamie@enmasse.com>2011-08-03 20:33:13 -0700
committerJamie Winsor <jamie@enmasse.com>2011-08-03 20:38:41 -0700
commitd3eff64d19c845dc947a2872644eb514058db762 (patch)
tree1f96a066f3fbf0d914a3b1dadba788f0abee0418 /lib
parent274ba14ea24d2e59a4ddf2e09fd94fa9246f1c55 (diff)
downloadrefinerycms-blog-d3eff64d19c845dc947a2872644eb514058db762.tar.gz
refinerycms-blog-d3eff64d19c845dc947a2872644eb514058db762.tar.bz2
refinerycms-blog-d3eff64d19c845dc947a2872644eb514058db762.zip
Add rake tasks to initialize the testing environment
Update README to reflect new functionality
Diffstat (limited to 'lib')
-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