aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Rakefile2
-rw-r--r--tasks/testing.rake9
2 files changed, 11 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 743f388..38a827d 100644
--- a/Rakefile
+++ b/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__)
+
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