Merge pull request #3 from weppos/update-rspec-187

Compatibility with 1.8.7
This commit is contained in:
Bob Aman 2012-06-15 02:24:04 -07:00
commit e1c1e7e95d
2 changed files with 7 additions and 21 deletions

View File

@ -1,8 +1,7 @@
spec_dir = File.expand_path("..", __FILE__) $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
lib_dir = File.expand_path("../lib", spec_dir)
$LOAD_PATH.unshift(lib_dir)
$LOAD_PATH.uniq! $LOAD_PATH.uniq!
require 'rspec'
RSpec.configure do |config| RSpec.configure do |config|
end end

View File

@ -29,26 +29,13 @@ namespace :spec do
t.rcov = false t.rcov = false
end end
t.rcov_opts = %w( t.rcov_opts = %w(
--exclude lib/google/api_client/environment.rb, --exclude gems/
lib/compat, --exclude spec/
spec, --exclude lib/google/api_client/environment.rb
.rvm/gems, --exclude lib/compat
1.8/gems,
1.9/gems,
.rvm,
/Library/Ruby
) )
end end
if RCOV_ENABLED
RCov::VerifyTask.new(:verify) do |t|
t.threshold = 65.0
t.index_html = 'coverage/index.html'
end
task :verify => :rcov
end
namespace :rcov do namespace :rcov do
desc 'Browse the code coverage report.' desc 'Browse the code coverage report.'
task :browse => 'spec:rcov' do task :browse => 'spec:rcov' do