summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2011-03-14 17:09:42 +0000
committerLee Jarvis <lee@jarvis.co>2011-03-14 17:09:42 +0000
commitf63a3ac576a4e105c855fb4a4b5b3118197c3018 (patch)
tree822682a5d240593b414144357986bd6add6eaa60 /Rakefile
parent1c7a70cfa536ff7dff13045b2858fa03fcc296e3 (diff)
downloadslop-f63a3ac576a4e105c855fb4a4b5b3118197c3018.tar.gz
lets not get technical up in this rakefile
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile23
1 files changed, 8 insertions, 15 deletions
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