Projet

Général

Profil

Révision 430c87b7

ID430c87b7c5df8eced88b56c39e588dde27ef38ba
Parent 0877a8fd
Enfant c8683bd8

Ajouté par Kienan Stewart il y a plus de 4 ans

Load module data during spec tests

This allows tests that depend on the module data being loaded to pass.

Voir les différences:

spec/spec_helper.rb
20 20
    end
21 21
  end
22 22
end
23

  
24
# This loads the module data, needed to test different OSes.
25
RSpec.shared_context "hiera", :shared_context => :metadata do
26
  let (:hiera_config) { 'hiera.yaml' }
27
  Hiera.new({:config => 'hiera.yaml'})
28
end

Formats disponibles : Unified diff