Sha256: 0feed6a2e2037dbe54d49797daaeacc036abdfd61616a100fc0a1c1c081611a4

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true
require 'rspec/core/rake_task'

namespace :eac_rails_base0 do
  desc 'Remove all temporary files.'
  task clear: ['db:schema:cache:clear', 'log:clear', 'tmp:clear', 'assets:clobber'] do
  end

  ::RSpec::Core::RakeTask.new(:rspec) do |t|
    t.rspec_opts = "--pattern '**/spec/**/*_spec.rb'"
  end
  Rake::Task['eac_rails_base0:rspec'].enhance ['db:test:prepare']

  desc 'Minitest for engines'
  Rails::TestTask.new('minitest:engines' => 'test:prepare') do |t|
    t.pattern = 'engines/*/test/**/*_test.rb'
  end

  desc 'Minitest for application'
  task minitest: %w(test:run eac_rails_base0:minitest:engines)

  desc 'Minitest and RSpec for application'
  task test: ['test', 'eac_rails_base0:rspec']

  namespace :gems do
    desc 'Minitest and RSpec for application and local gems'
    task test_all: :environment do
      require 'eac_ruby_utils/gem/test_all'
      ::EacRubyUtils::Gem::TestAll.new(::EacRailsBase0::Gems.all)
    end
  end
end

Rake::Task['default'].clear
task default: %w(eac_rails_base0:gems:test_all)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eac_rails_base0-0.29.0 lib/tasks/eac_rails_base0.rake