Sha256: 48ca6f7c9dccb504d4157dee9668c2f1fa661a72b047c2316931135b7838f987

Contents?: true

Size: 450 Bytes

Versions: 4

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_volume_pricing-0.2.1 Rakefile
solidus_volume_pricing-0.1.1 Rakefile
solidus_volume_pricing-0.2.0 Rakefile
solidus_volume_pricing-0.1.0 Rakefile