Sha256: 23132698d6d299e73dccf8da1c6ca044d4dbc69cb74a6642fa77997f3337e647

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

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_volume_pricing'
  Rake::Task['extension:test_app'].invoke
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_volume_pricing-1.0.0 Rakefile