Sha256: 622d3711c3b77aec03ffc4d9c5f8b8d3b6da8d59e1c09a792dd97f14ca075748

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

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

RSpec::Core::RakeTask.new

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['common:test_app'].invoke("Spree::User")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_comments-1.0.1 Rakefile
solidus_comments-1.0.0 Rakefile