Sha256: a7cd37229088997e0a846d47e99826d2c7d99b1973efb7c1014868c21a95b04a

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

def dump_load_path
  puts $LOAD_PATH.join("\n")
  found = nil
  $LOAD_PATH.each do |path|
    next unless File.exist?(File.join(path, 'rspec'))
    puts "Found rspec in #{path}"
    if File.exist?(File.join(path, 'rspec', 'core'))
      puts 'Found core'
      if File.exist?(File.join(path, 'rspec', 'core', 'rake_task'))
        puts 'Found rake_task'
        found = path
      else
        puts '!! no rake_task'
      end
    else
      puts '!!! no core'
    end
  end
  if found.nil?
    puts "Didn't find rspec/core/rake_task anywhere"
  else
    puts "Found in #{path}"
  end
end
require 'bundler'
require 'rake/clean'

require 'rake/testtask'

require 'cucumber'
require 'cucumber/rake/task'
gem 'rdoc' # we need the installed RDoc gem, not the system one
require 'rdoc/task'

include Rake::DSL

Bundler::GemHelper.install_tasks

Rake::TestTask.new do |t|
  t.pattern = 'test/tc_*.rb'
end

CUKE_RESULTS = 'results.html'.freeze
CLEAN << CUKE_RESULTS
Cucumber::Rake::Task.new(:features) do |t|
  t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
  t.fork = false
end

Rake::RDocTask.new do |rd|
  rd.main = 'README.rdoc'

  rd.rdoc_files.include('README.rdoc', 'lib/**/*.rb', 'bin/**/*')
end

task default: %i[test features]

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
recent_ruby-0.1.5 Rakefile
recent_ruby-0.1.4 Rakefile
recent_ruby-0.1.3 Rakefile
recent_ruby-0.1.2 Rakefile
recent_ruby-0.1.1 Rakefile
recent_ruby-0.1.0 Rakefile