Skip to content

Commit

Permalink
Enable future parser testing
Browse files Browse the repository at this point in the history
rspec-puppet#183 was merged and released in 2.0, so we can now take
advantage of the future parser.
  • Loading branch information
Colleen Murphy committed Feb 11, 2015
1 parent 73c2f12 commit da98419
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 @@ -31,7 +31,6 @@ def verify_contents(subject, title, expected_lines)

c.before :each do
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 da98419

Please sign in to comment.