File tree 2 files changed +7
-21
lines changed
2 files changed +7
-21
lines changed Original file line number Diff line number Diff line change 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__ ) )
5
2
$LOAD_PATH. uniq!
6
3
4
+ require 'rspec'
5
+
7
6
RSpec . configure do |config |
8
7
end
Original file line number Diff line number Diff line change @@ -29,26 +29,13 @@ namespace :spec do
29
29
t . rcov = false
30
30
end
31
31
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
40
36
)
41
37
end
42
38
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
-
52
39
namespace :rcov do
53
40
desc 'Browse the code coverage report.'
54
41
task :browse => 'spec:rcov' do
You can’t perform that action at this time.
0 commit comments