Skip to content

Commit e1c1e7e

Browse files
committed
Merge pull request googleapis#3 from weppos/update-rspec-187
Compatibility with 1.8.7
2 parents bc3d05d + 4656b73 commit e1c1e7e

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

spec/spec_helper.rb

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
spec_dir = File.expand_path("..", __FILE__)
2-
lib_dir = File.expand_path("../lib", spec_dir)
3-
4-
$LOAD_PATH.unshift(lib_dir)
1+
$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
52
$LOAD_PATH.uniq!
63

4+
require 'rspec'
5+
76
RSpec.configure do |config|
87
end

tasks/spec.rake

+4-17
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,13 @@ namespace :spec do
2929
t.rcov = false
3030
end
3131
t.rcov_opts = %w(
32-
--exclude lib/google/api_client/environment.rb,
33-
lib/compat,
34-
spec,
35-
.rvm/gems,
36-
1.8/gems,
37-
1.9/gems,
38-
.rvm,
39-
/Library/Ruby
32+
--exclude gems/
33+
--exclude spec/
34+
--exclude lib/google/api_client/environment.rb
35+
--exclude lib/compat
4036
)
4137
end
4238

43-
if RCOV_ENABLED
44-
RCov::VerifyTask.new(:verify) do |t|
45-
t.threshold = 65.0
46-
t.index_html = 'coverage/index.html'
47-
end
48-
49-
task :verify => :rcov
50-
end
51-
5239
namespace :rcov do
5340
desc 'Browse the code coverage report.'
5441
task :browse => 'spec:rcov' do

0 commit comments

Comments
 (0)