Révision 59c1ddf4
Mock with mocha
.sync.yml | ||
---|---|---|
1 |
--- |
|
2 |
spec/spec_helper.rb: |
|
3 |
mock_with: ':mocha' |
spec/spec_helper.rb | ||
---|---|---|
2 | 2 |
# https://github.com/voxpupuli/modulesync |
3 | 3 |
# https://github.com/voxpupuli/modulesync_config |
4 | 4 |
|
5 |
RSpec.configure do |c| |
|
6 |
c.mock_with :mocha |
|
7 |
end |
|
8 |
|
|
5 | 9 |
# puppetlabs_spec_helper will set up coverage if the env variable is set. |
6 | 10 |
# We want to do this if lib exists and it hasn't been explicitly set. |
7 | 11 |
ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../../lib', __FILE__)) |
Formats disponibles : Unified diff