Sha256: 71a56739099e288e26f46a4079bbad7b3f1ceb0c3939aa2d46ffc766f45567c6

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 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'] = 'spree_br_common'
  Rake::Task['extension:test_app'].invoke
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_br_common-3.0.1 Rakefile
spree_br_common-3.0.0 Rakefile