Permalink
Browse files

Use refinery:testing:setup_extension rake task to copy Refinery::Sett…

…ing migration file.
  • Loading branch information...
1 parent bd2bcc0 commit 44ec487542dba046dfcedc1c0d2e1c962c936e2e @ugisozols ugisozols committed Feb 24, 2012
Showing with 11 additions and 0 deletions.
  1. +2 −0 Rakefile
  2. +9 −0 tasks/testing.rake
View
@@ -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__)
+
View
@@ -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

0 comments on commit 44ec487

Please sign in to comment.