Sha256: eaf3870ecb294f0c004ca3924b6c1e4cb25b6f9f0e5c93a9dedba24748e70459

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
require 'spree/testing_support/extension_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_admin_insights'
  Rake::Task['extension:test_app'].invoke
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_admin_insights-2.1.1 Rakefile
solidus_admin_insights-2.1.0 Rakefile