Skip to content

Commit

Permalink
Build test_app if none exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinetheta committed Apr 29, 2016
1 parent efdc0d3 commit af5e857
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
require 'spree/testing_support/extension_rake'
require 'spree/testing_support/common_rake'

RSpec::Core::RakeTask.new

task :default => [:spec]
task :default do
if Dir["spec/dummy"].empty?
Rake::Task[:test_app].invoke
Dir.chdir("../../")
end
Rake::Task[:spec].invoke
end

desc 'Generates a dummy app for testing'
task :test_app do
ENV['LIB_NAME'] = 'solidus_comments'
Rake::Task['extension:test_app'].invoke
Rake::Task['common:test_app'].invoke("Spree::User")
end

0 comments on commit af5e857

Please sign in to comment.