From f63a3ac576a4e105c855fb4a4b5b3118197c3018 Mon Sep 17 00:00:00 2001 From: Lee Jarvis Date: Mon, 14 Mar 2011 17:09:42 +0000 Subject: lets not get technical up in this rakefile --- Rakefile | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index ff60194..68ee369 100644 --- a/Rakefile +++ b/Rakefile @@ -1,15 +1,8 @@ -require 'rspec/core/rake_task' -require File.expand_path('../lib/slop', __FILE__) - -RSpec::Core::RakeTask.new(:spec) do |spec| - spec.rspec_opts = ["-c", "--fail-fast", "-f documentation"] - spec.pattern = 'spec/**/*_spec.rb' -end - -desc "Install Slop as a Ruby gem" -task :install do - sh("gem build slop.gemspec") - sh("gem install slop-#{Slop::VERSION}.gem") -end - -task :default => :spec +task :test do + $LOAD_PATH.unshift './lib' + require 'slop' + require 'minitest/spec' + require 'minitest/autorun' + begin; require 'turn'; rescue LoadError; end + Dir.glob("test/**/*_test.rb").each { |test| require_relative test } +end \ No newline at end of file -- cgit v1.2.1