Sha256: 478c2f7fcf74fd9a091c1a08d7083f0a2f7fe1b4c3e98c8eba84a5d61c37ba2d

Contents?: true

Size: 666 Bytes

Versions: 6

Compression:

Stored size: 666 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
tty-progressbar-0.17.0 tasks/spec.rake
tty-progressbar-0.16.0 tasks/spec.rake
tty-progressbar-0.15.1 tasks/spec.rake
tty-progressbar-0.15.0 tasks/spec.rake
tty-progressbar-0.14.0 tasks/spec.rake
tty-progressbar-0.13.0 tasks/spec.rake