Sha256: 1dc23e15b59844d746d5fe47bdce39e722d5a4c856a12a88093542b89affa4c7

Contents?: true

Size: 697 Bytes

Versions: 16

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

16 entries across 16 versions & 5 rubygems

Version Path
planter-cli-3.0.7 lib/tty-spinner/tasks/spec.rake
planter-cli-3.0.5 lib/tty-spinner/tasks/spec.rake
planter-cli-3.0.4 lib/tty-spinner/tasks/spec.rake
planter-cli-3.0.3 lib/tty-spinner/tasks/spec.rake
planter-cli-3.0.2 lib/tty-spinner/tasks/spec.rake
rfix-3.0.1 vendor/strings-ansi/tasks/spec.rake
rfix-3.0.0 vendor/strings-ansi/tasks/spec.rake
rfix-2.0.4 vendor/strings-ansi/tasks/spec.rake
rfix-2.0.3 vendor/strings-ansi/tasks/spec.rake
rfix-2.0.2 vendor/strings-ansi/tasks/spec.rake
rfix-2.0.1 vendor/strings-ansi/tasks/spec.rake
rfix-2.0.0 vendor/strings-ansi/tasks/spec.rake
strings-case-0.2.0 tasks/spec.rake
strings-ansi-0.2.0 tasks/spec.rake
strings-case-0.1.0 tasks/spec.rake
tty-link-0.1.0 tasks/spec.rake