Sha256: 3721e494c78c8a99a13ce9126529ed4781863c50b0ec78f12148519a0df3d19a

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

require "rubygems"
require "bundler/setup"

Bundler.require(:default, :test)

Bundler::GemHelper.install_tasks

namespace :test do
  task :set_load_path do
    $LOAD_PATH.unshift File.expand_path('test')
  end

  def load_tests(directory)
    Rake::FileList["test/#{directory}/*_test.rb"].each { |f| require_relative f }
  end

  task units: :set_load_path do
    load_tests('unit')
  end

  task integrations: :set_load_path do
    load_tests('integration')
  end
end

task test: 'test:set_load_path' do
  load_tests('**')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nesta-0.12.0 Rakefile