Sha256: 2850bd0f9a2f2a2c53e47bbae5704713be01ce85a854cfcdfa1e73c2bcbd8388
Contents?: true
Size: 962 Bytes
Versions: 6
Compression:
Stored size: 962 Bytes
Contents
require 'bundler' Bundler::GemHelper.install_tasks name: ENV['GEMNAME'] require 'rspec/core/rake_task' require 'generators/spree/dummy/dummy_generator' require 'generators/spree/install/install_generator' 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["RAILS_ENV"] = 'test' Spree::DummyGeneratorHelper.inject_extension_requirements = true Spree::DummyGenerator.start %w(--lib_name=spree_api_v2 --quiet) Spree::InstallGenerator.class_eval do def config_spree_yml() end end Spree::InstallGenerator.start %w( --lib_name=spree_api_v2 --auto-accept --migrate=false --seed=false --sample=false --quiet --user_class=Spree::LegacyUser ) puts 'Setting up dummy database...' system "bundle exec rake db:drop db:create db:migrate > #{File::NULL}" end
Version data entries
6 entries across 6 versions & 2 rubygems
Version | Path |
---|---|
spree_api_v2-0.2.2 | Rakefile |
solidus_api_v2-0.2.2 | Rakefile |
solidus_api_v2-0.2.1 | Rakefile |
spree_api_v2-0.2.1 | Rakefile |
spree_api_v2-0.2.0 | Rakefile |
solidus_api_v2-0.2.0 | Rakefile |