diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-03-14 17:09:42 +0000 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-03-14 17:09:42 +0000 |
commit | f63a3ac576a4e105c855fb4a4b5b3118197c3018 (patch) | |
tree | 822682a5d240593b414144357986bd6add6eaa60 /Rakefile | |
parent | 1c7a70cfa536ff7dff13045b2858fa03fcc296e3 (diff) | |
download | slop-f63a3ac576a4e105c855fb4a4b5b3118197c3018.tar.gz |
lets not get technical up in this rakefile
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 23 |
1 files changed, 8 insertions, 15 deletions
@@ -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 |