Sha256: c2d0bb2c0eab4950ca03d187398fc3204671af07050157110f148fd870ae4385

Contents?: true

Size: 697 Bytes

Versions: 15

Compression:

Stored size: 697 Bytes

Contents

# frozen_string_literal: true

begin
  require 'rspec/core/rake_task'

  desc 'Run all specs'
  RSpec::Core::RakeTask.new(:spec) do |task|
    task.pattern = 'spec/{unit,integration}{,/*/**}/*_spec.rb'
  end

  namespace :spec do
    desc 'Run unit specs'
    RSpec::Core::RakeTask.new(:unit) do |task|
      task.pattern = 'spec/unit{,/*/**}/*_spec.rb'
    end

    desc 'Run integration specs'
    RSpec::Core::RakeTask.new(:integration) do |task|
      task.pattern = 'spec/integration{,/*/**}/*_spec.rb'
    end
  end

rescue LoadError
  %w[spec spec:unit spec:integration].each do |name|
    task name do
      $stderr.puts "In order to run #{name}, do `gem install rspec`"
    end
  end
end

Version data entries

15 entries across 15 versions & 6 rubygems

Version Path
pokedex-terminal-0.2.8 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/tasks/spec.rake
pokedex-terminal-0.2.7 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/tasks/spec.rake
pokedex-terminal-0.2.6 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/tasks/spec.rake
pokedex-terminal-0.2.5 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/tasks/spec.rake
pokedex-terminal-0.2.4 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/tasks/spec.rake
necromancer-0.5.1 tasks/spec.rake
tty-editor-0.5.1 tasks/spec.rake
tty-file-0.8.0 tasks/spec.rake
tty-logger-0.1.0 tasks/spec.rake
tty-logger-0.0.0 tasks/spec.rake
tty-cursor-0.7.0 tasks/spec.rake
tty-file-0.7.1 tasks/spec.rake
necromancer-0.5.0 tasks/spec.rake
tty-editor-0.5.0 tasks/spec.rake
tty-file-0.7.0 tasks/spec.rake