Skip to content

Commit

Permalink
Merge pull request #246 from dhoppe/patch-1
Browse files Browse the repository at this point in the history
Add support for explicit mock frameworks
  • Loading branch information
bastelfreak authored Oct 19, 2016
2 parents 145056e + 698bb3d commit dbf37eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions moduleroot/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
default_facts.merge!(YAML.load(File.read(File.expand_path('../default_facts.yml', __FILE__)))) if File.exist?(File.expand_path('../default_facts.yml', __FILE__))
default_facts.merge!(YAML.load(File.read(File.expand_path('../default_module_facts.yml', __FILE__)))) if File.exist?(File.expand_path('../default_module_facts.yml', __FILE__))
c.default_facts = default_facts
<%- if @configs['mock_with'] -%>
c.mock_with <%= @configs['mock_with'] %>
<%- end -%>
end
<%- [@configs['spec_overrides']].flatten.compact.each do |line| -%>
Expand Down

0 comments on commit dbf37eb

Please sign in to comment.