Use refinery:testing:setup_extension rake task to copy Refinery::Setting migration file.
This commit is contained in:
parent
bd2bcc0f2a
commit
44ec487542
2 changed files with 11 additions and 0 deletions
2
Rakefile
2
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__)
|
||||
|
||||
|
|
9
tasks/testing.rake
Normal file
9
tasks/testing.rake
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue