Permalink
Browse files

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

Compatibility with 1.8.7
  • Loading branch information...
2 parents bc3d05d + 4656b73 commit e1c1e7e95d02bfcff186c7c867c49d4795edb1e2 @sporkmonger sporkmonger committed Jun 15, 2012
Showing with 7 additions and 21 deletions.
  1. +3 −4 spec/spec_helper.rb
  2. +4 −17 tasks/spec.rake
View
@@ -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
@@ -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

0 comments on commit e1c1e7e

Please sign in to comment.