Sha256: 6c868e6a181a6c3b6c1a5e58d2e7e2658993f08c661b48e74c3faca09969345b
Contents?: true
Size: 989 Bytes
Versions: 2
Compression:
Stored size: 989 Bytes
Contents
# frozen_string_literal: true require 'rubygems' require 'rake' require 'rake/testtask' require 'rspec/core/rake_task' require 'spree/testing_support/dummy_app/rake_tasks' require 'solidus_admin/testing_support/dummy_app/rake_tasks' require 'bundler/gem_tasks' RSpec::Core::RakeTask.new task default: :spec DummyApp::RakeTasks.new( gem_root: File.dirname(__FILE__), lib_name: 'solidus_legacy_promotions' ) require 'yard/rake/yardoc_task' YARD::Rake::YardocTask.new(:yard) # The following workaround can be removed # once https://github.com/lsegal/yard/pull/1457 is merged. task('yard:require') { require 'yard' } task yard: 'yard:require' namespace :spec do task :isolated do spec_files = Dir['spec/**/*_spec.rb'] failed_specs = spec_files.reject do |file| puts "rspec #{file}" system('rspec', file) end if !failed_specs.empty? puts "Failed specs:" puts failed_specs exit 1 end end end task test_app: 'db:reset'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_legacy_promotions-4.4.1 | Rakefile |
solidus_legacy_promotions-4.4.0 | Rakefile |