Use refinery:testing:setup_extension rake task to copy Refinery::Setting migration file.

This commit is contained in:
Uģis Ozols 2012-02-24 06:39:13 +02:00
parent bd2bcc0f2a
commit 44ec487542
2 changed files with 11 additions and 0 deletions

View file

@ -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__)

9
tasks/testing.rake Normal file
View file

@ -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