diff options
-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 |