Skip to content

Commit

Permalink
Updated to rspec2
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydurham committed Oct 15, 2010
1 parent ae729ce commit 9ac61bf
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Rakefile
Expand Up @@ -2,7 +2,7 @@ require 'rubygems'
require 'rake/gempackagetask'
require 'rubygems/specification'
require 'rake/rdoctask'
require 'spec/rake/spectask'
require 'rspec/core/rake_task'
require File.join(File.dirname(__FILE__), 'lib', 'service_proxy', 'base')

NAME = "serviceproxy"
Expand Down Expand Up @@ -74,21 +74,15 @@ task :rcov do
end
end

file_list = FileList['spec/**/*_spec.rb']

desc "Run all examples"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = file_list
RSpec::Core::RakeTask.new(:spec) do |t|
end

namespace :spec do
desc "Run all examples with RCov"
Spec::Rake::SpecTask.new('rcov') do |t|
t.spec_files = file_list
RSpec::Core::RakeTask.new(:rcov) do |t|
t.rcov = true
t.rcov_dir = "doc/coverage"
t.rcov_opts = ['--exclude', 'spec']
end
end
end

desc 'Default: run unit tests.'
Expand Down

0 comments on commit 9ac61bf

Please sign in to comment.