diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-02-24 06:39:13 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-02-24 06:39:13 +0200 |
commit | 44ec487542dba046dfcedc1c0d2e1c962c936e2e (patch) | |
tree | cf37b21f46921c9149b2c1a5a4b462cb5aa1feee | |
parent | bd2bcc0f2a3c8ff15bce5487a779dba7306bde07 (diff) | |
download | refinerycms-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-- | Rakefile | 2 | ||||
-rw-r--r-- | tasks/testing.rake | 9 |
2 files changed, 11 insertions, 0 deletions
@@ -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 |