Permalink
Browse files

Simplify a bit.

  • Loading branch information...
1 parent 8898476 commit 94041d8a6b3c209fd0e7052bbd00f3bf140ebcdb @phiggins phiggins committed with parndt Mar 30, 2012
Showing with 8 additions and 8 deletions.
  1. +1 −1 tasks/rspec.rake
  2. +7 −7 testing/lib/refinery/tasks/testing.rake
View
@@ -5,4 +5,4 @@ RSpec::Core::RakeTask.new do |t|
t.pattern = "./*/spec"
end
-task :spec => "refinery:testing:conditionally_setup_dummy_app"
+task :spec => "refinery:testing:dummy_app"
@@ -1,7 +1,13 @@
namespace :refinery do
namespace :testing do
desc "Generates a dummy app for testing"
- task :dummy_app => [:setup_dummy_app, :setup_extension, :init_test_database]
+ task :dummy_app do
+ unless dummy_app_path.exist?
+ Rake::Task["refinery:testing:setup_dummy_app"].invoke
+ Rake::Task["refinery:testing:setup_extension"].invoke
+ Rake::Task["refinery:testing:init_test_database"].invoke
+ end
+ end
task :setup_dummy_app do
require 'refinerycms'
@@ -41,12 +47,6 @@ namespace :refinery do
Rake::Task["app:db:test:prepare"].invoke
end
- task :conditionally_setup_dummy_app do
- unless dummy_app_path.exist?
- Rake::Task["refinery:testing:dummy_app"].invoke
- end
- end
-
def dummy_app_path
Refinery::Testing::Railtie.target_extension_path.join('spec', 'dummy')
end

0 comments on commit 94041d8

Please sign in to comment.