Skip to content

Commit

Permalink
Merge pull request #3 from weppos/update-rspec-187
Browse files Browse the repository at this point in the history
Compatibility with 1.8.7
  • Loading branch information
sporkmonger committed Jun 15, 2012
2 parents bc3d05d + 4656b73 commit e1c1e7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
7 changes: 3 additions & 4 deletions spec/spec_helper.rb
@@ -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
21 changes: 4 additions & 17 deletions tasks/spec.rake
Expand Up @@ -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
Expand Down

0 comments on commit e1c1e7e

Please sign in to comment.