Skip to content

Commit

Permalink
add spec rake task with some sensible defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmario committed Jun 23, 2009
1 parent 866e58e commit bcab02a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
8 changes: 6 additions & 2 deletions Rakefile
Expand Up @@ -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
11 changes: 2 additions & 9 deletions spec/spec_helper.rb
@@ -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.