Permalink
Browse files

Use rspec rake task

  • Loading branch information...
1 parent 984c4f7 commit d54d855e103d80536ff5951c0850753ac557ddbe @wycats wycats committed May 5, 2010
Showing with 4 additions and 12 deletions.
  1. +3 −12 Rakefile
  2. +1 −0 spec/spec_helper.rb
View
@@ -1,12 +1,3 @@
-task :spec do
- require "rspec"
-
- $:.unshift File.expand_path("../lib", __FILE__)
- $:.unshift File.expand_path("../spec", __FILE__)
- require "rubygems"
- require "pp"
-
- Dir["#{File.expand_path("..", __FILE__)}/spec/**/*_spec.rb"].each do |file|
- require file
- end
-end
+require "rubygems"
+require "rspec/core/rake_task"
+Rspec::Core::RakeTask.new(:spec)
View
@@ -1,3 +1,4 @@
+require "rubygems"
require "rspec"
require "support/runner"
require "support/matcher"

0 comments on commit d54d855

Please sign in to comment.