Permalink
Browse files

add spec rake task with some sensible defaults

  • Loading branch information...
1 parent 866e58e commit bcab02a735e8a3e705647aeb64aa24f94190ab42 @brianmario committed Jun 23, 2009
Showing with 8 additions and 11 deletions.
  1. +6 −2 Rakefile
  2. +2 −9 spec/spec_helper.rb
View
@@ -22,8 +22,12 @@ require 'rake'
require 'spec/rake/spectask'
desc "Run all examples with RCov"
-Spec::Rake::SpecTask.new('spec_with_rcov') do |t|
+Spec::Rake::SpecTask.new('spec:rcov') do |t|
t.spec_files = FileList['spec/']
t.rcov = true
- t.rcov_opts = ['--exclude', 'spec', '--spec-only']
+ t.rcov_opts << '--options' << 'spec/rcov.opts'
+end
+Spec::Rake::SpecTask.new('spec') do |t|
+ t.spec_files = FileList['spec/']
+ t.spec_opts << '--options' << 'spec/spec.opts'
end
View
@@ -1,11 +1,4 @@
# encoding: UTF-8
-$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
-
-begin
- require './yajl_ext'
- require 'yajl'
-rescue LoadError
- require 'yajl'
-end
-require 'stringio'
+require 'rubygems'
+require 'yajl'
require 'active_support/core_ext/kernel/reporting'

0 comments on commit bcab02a

Please sign in to comment.