Révision 430c87b7
Load module data during spec tests
This allows tests that depend on the module data being loaded to pass.
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