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__)
lib_dir = File.expand_path("../lib", spec_dir)
$LOAD_PATH.unshift(lib_dir)
$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
$LOAD_PATH.uniq!
require 'rspec'
RSpec.configure do |config|
end

View File

@ -29,26 +29,13 @@ namespace :spec do
t.rcov = false
end
t.rcov_opts = %w(
--exclude lib/google/api_client/environment.rb,
lib/compat,
spec,
.rvm/gems,
1.8/gems,
1.9/gems,
.rvm,
/Library/Ruby
--exclude gems/
--exclude spec/
--exclude lib/google/api_client/environment.rb
--exclude lib/compat
)
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
desc 'Browse the code coverage report.'
task :browse => 'spec:rcov' do