Sha256: 351b0cb5e1a6e0848d9dd442840c869f8873c8cb9ddd7ab2ba2d57b998ab0b47
Contents?: true
Size: 650 Bytes
Versions: 5
Compression:
Stored size: 650 Bytes
Contents
require 'bundler' Bundler::GemHelper.install_tasks begin require 'spree/testing_support/extension_rake' # require 'rubocop/rake_task' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) # TODO enable # RuboCop::RakeTask.new # task default: %i(first_run rubocop spec) task default: %i(first_run spec) rescue LoadError # no rspec available end task :first_run do if Dir['spec/dummy'].empty? Rake::Task[:test_app].invoke Dir.chdir('../../') end end desc 'Generates a dummy app for testing' task :test_app do ENV['LIB_NAME'] = 'solidus_product_attachments' Rake::Task['extension:test_app'].invoke end
Version data entries
5 entries across 5 versions & 1 rubygems