From 44ec487542dba046dfcedc1c0d2e1c962c936e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Fri, 24 Feb 2012 06:39:13 +0200 Subject: Use refinery:testing:setup_extension rake task to copy Refinery::Setting migration file. --- tasks/testing.rake | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tasks/testing.rake (limited to 'tasks') 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 -- cgit v1.2.3