Skip to content

Commit

Permalink
Merge pull request #91 from cmurphy/future
Browse files Browse the repository at this point in the history
Enable future parser testing
  • Loading branch information
hunner committed Feb 11, 2015
2 parents 6d5a905 + da98419 commit 2c4550d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/puppetlabs_spec_helper/module_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def verify_contents(subject, title, expected_lines)
RSpec.configure do |c|
c.module_path = module_path
c.manifest_dir = File.join(fixture_path, 'manifests')
## These depend on rspec-puppet #209 and #183 being released
#c.parser = 'future' if ENV['FUTURE_PARSER'] == 'yes'
c.parser = 'future' if ENV['FUTURE_PARSER'] == 'yes'
## This depends on rspec-puppet #209 being released
#c.strict_variables = true if ENV['STRICT_VARIABLES'] == 'yes'
## These depend on rspec-puppet #212 being released
#c.stringify_facts = false if ENV['STRINGIFY_FACTS'] == 'no'
Expand All @@ -32,7 +32,6 @@ def verify_contents(subject, title, expected_lines)
c.before :each do
Puppet.features.stubs(:root?).returns(true)
Puppet.settings[:strict_variables] = true if ENV['STRICT_VARIABLES'] == 'yes'
Puppet.settings[:parser] = 'future' if ENV['FUTURE_PARSER'] == 'yes'
Puppet.settings[:stringify_facts] = false if ENV['STRINGIFY_FACTS'] == 'no'
Puppet.settings[:trusted_node_data] = true if ENV['TRUSTED_NODE_DATA'] == 'yes'
Puppet.settings[:ordering] = ENV['ORDERING'] if ENV['ORDERING']
Expand Down

0 comments on commit 2c4550d

Please sign in to comment.