Projet

Général

Profil

Révision 59c1ddf4

ID59c1ddf4810b9f674af6864cf7b531cff0faf664
Parent b09d43bf
Enfant 31b17627

Ajouté par Steve Traylen il y a plus de 4 ans

Mock with mocha

Voir les différences:

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