diff options
author | Jake Farrell <jfarrell@apache.org> | 2012-09-28 01:59:04 +0000 |
---|---|---|
committer | Jake Farrell <jfarrell@apache.org> | 2012-09-28 01:59:04 +0000 |
commit | a87810ff4b4fb75ccb83e4720169422a77939527 (patch) | |
tree | 1c52b8ba3a0b8200b5dabd2ef14730f09ad6959d /lib/rb/Rakefile | |
parent | 6af2ec09b3ce3a9b440b79fb918e0c0378a703d5 (diff) | |
download | thrift-a87810ff4b4fb75ccb83e4720169422a77939527.tar.gz |
Thrift-1644:Upgrade RSpec to 2.11.x and refactor specs as needed
Client: rb
Patch: Nathan Beyer
Upgrading to rspec2.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1391280 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'lib/rb/Rakefile')
-rw-r--r-- | lib/rb/Rakefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/rb/Rakefile b/lib/rb/Rakefile index 259073848..132c6358f 100644 --- a/lib/rb/Rakefile +++ b/lib/rb/Rakefile @@ -20,21 +20,19 @@ require 'rubygems' require 'rake' require 'rake/clean' -require 'spec/rake/spectask' +require 'rspec/core/rake_task' THRIFT = '../../compiler/cpp/thrift' task :default => [:gem] task :spec => [:'gen-rb', :build_ext, :realspec] -Spec::Rake::SpecTask.new(:realspec) do |t| - t.spec_files = FileList['spec/**/*_spec.rb'] - t.spec_opts = ['--color'] +RSpec::Core::RakeTask.new(:realspec) do |t| + t.rspec_opts = ['--color', '--format d'] end -Spec::Rake::SpecTask.new(:'spec:rcov') do |t| - t.spec_files = FileList['spec/**/*_spec.rb'] - t.spec_opts = ['--color'] +RSpec::Core::RakeTask.new(:'spec:rcov') do |t| + t.rspec_opts = ['--color', '--format d'] t.rcov = true t.rcov_opts = ['--exclude', '^spec,/gems/'] end |