aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-02-24 06:39:13 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2012-02-24 06:39:13 +0200
commit44ec487542dba046dfcedc1c0d2e1c962c936e2e (patch)
treecf37b21f46921c9149b2c1a5a4b462cb5aa1feee
parentbd2bcc0f2a3c8ff15bce5487a779dba7306bde07 (diff)
downloadrefinerycms-blog-44ec487542dba046dfcedc1c0d2e1c962c936e2e.tar.gz
refinerycms-blog-44ec487542dba046dfcedc1c0d2e1c962c936e2e.tar.bz2
refinerycms-blog-44ec487542dba046dfcedc1c0d2e1c962c936e2e.zip
Use refinery:testing:setup_extension rake task to copy Refinery::Setting migration file.
-rw-r--r--Rakefile2
-rw-r--r--tasks/testing.rake9
2 files changed, 11 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 743f388..38a827d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -17,3 +17,5 @@ Refinery::Testing::Railtie.load_tasks
Refinery::Testing::Railtie.load_dummy_tasks(ENGINE_PATH)
load File.expand_path('../tasks/rspec.rake', __FILE__)
+load File.expand_path('../tasks/testing.rake', __FILE__)
+
diff --git a/tasks/testing.rake b/tasks/testing.rake
new file mode 100644
index 0000000..973837f
--- /dev/null
+++ b/tasks/testing.rake
@@ -0,0 +1,9 @@
+namespace :refinery do
+ namespace :testing do
+ task :setup_extension do
+ task = "bundle exec rake -f #{Refinery::Testing::Railtie.target_engine_path.join('Rakefile')} "
+ task << "app:railties:install:migrations FROM='refinery_settings'"
+ system task
+ end
+ end
+end