Refactor testing tasks out of this project and into refinerycms project
This commit is contained in:
parent
d3eff64d19
commit
e85535da5f
2 changed files with 1 additions and 22 deletions
2
Rakefile
2
Rakefile
|
@ -22,7 +22,7 @@ end
|
||||||
|
|
||||||
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
||||||
load 'rails/tasks/engine.rake'
|
load 'rails/tasks/engine.rake'
|
||||||
load 'refinery/tasks/testing.rake'
|
load 'refinerycms/tasks/testing.rake'
|
||||||
|
|
||||||
Bundler::GemHelper.install_tasks
|
Bundler::GemHelper.install_tasks
|
||||||
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
namespace :refinery do
|
|
||||||
namespace :testing do
|
|
||||||
|
|
||||||
desc "Initialize the testing environment"
|
|
||||||
task :setup => [
|
|
||||||
:init_dummy_app,
|
|
||||||
:init_test_database
|
|
||||||
]
|
|
||||||
|
|
||||||
task :init_dummy_app do
|
|
||||||
system "git submodule init"
|
|
||||||
system "git submodule update"
|
|
||||||
end
|
|
||||||
|
|
||||||
task :init_test_database => [
|
|
||||||
'app:db:migrate',
|
|
||||||
'app:db:test:prepare'
|
|
||||||
]
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Add table
Add a link
Reference in a new issue