Sha256: 529d452e56dd4567cd8893bd6e1107665c5b89b925e78b55a24bb8d335de0a2d

Contents?: true

Size: 812 Bytes

Versions: 2

Compression:

Stored size: 812 Bytes

Contents

def dump_load_path
  puts $LOAD_PATH.join("\n")
  found = nil
  $LOAD_PATH.each do |path|
    if File.exists?(File.join(path,"rspec"))
      puts "Found rspec in #{path}"
      if File.exists?(File.join(path,"rspec","core"))
        puts "Found core"
        if File.exists?(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
  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'

include Rake::DSL

Bundler::GemHelper.install_tasks

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

task :default => :test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
estimator-0.0.4 Rakefile
estimator-0.0.3 Rakefile