Sha256: 530cebfb327fcf94d666bf3e51538aac634f8b11d36a2801ebdfec892520b89b

Contents?: true

Size: 686 Bytes

Versions: 1

Compression:

Stored size: 686 Bytes

Contents

# -*- coding: utf-8 -*-
#
# spec
#
begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec)

  RSpec::Core::RakeTask.new do |t|
    t.rspec_opts = %w(--color --format documentation --backtrace)
    t.pattern    = 'spec/**/*_spec.rb'
  end

rescue LoadError
  puts 'rspec (or a dependency) not available. Install it with: sudo gem install rspec'
end


#
#
#begin
#  require 'rcov/rcovtask'
#  Rcov::RcovTask.new do |test|
#    test.libs << 'test'
#    test.pattern = 'test/**/*_test.rb'
#    test.verbose = true
#  end
#rescue LoadError
#  task :rcov do
#    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
#  end
#end
#
#

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tree.rb-0.3.13 tasks/rspec.rake