spec/puppet-check_spec.rb in puppet-check-1.6.1 vs spec/puppet-check_spec.rb in puppet-check-2.0.0

- old
+ new

@@ -2,20 +2,19 @@ require_relative '../lib/puppet-check' describe PuppetCheck do context 'self' do it 'settings can be altered' do - PuppetCheck.settings[:future_parser] = true - expect(PuppetCheck.settings[:future_parser]).to eql(true) + expect(PuppetCheck.settings[:future_parser]).to eql(nil) PuppetCheck.settings[:fail_on_warnings] = true expect(PuppetCheck.settings[:fail_on_warnings]).to eql(true) - PuppetCheck.settings[:style_check] = true - expect(PuppetCheck.settings[:style_check]).to eql(true) - PuppetCheck.settings[:smoke_check] = true - expect(PuppetCheck.settings[:smoke_check]).to eql(true) - PuppetCheck.settings[:regression_check] = true - expect(PuppetCheck.settings[:regression_check]).to eql(true) + PuppetCheck.settings[:style] = true + expect(PuppetCheck.settings[:style]).to eql(true) + PuppetCheck.settings[:smoke] = true + expect(PuppetCheck.settings[:smoke]).to eql(true) + PuppetCheck.settings[:regression] = true + expect(PuppetCheck.settings[:regression]).to eql(true) PuppetCheck.settings[:public] = 'public.pem' expect(PuppetCheck.settings[:public]).to eql('public.pem') PuppetCheck.settings[:private] = 'private.pem' expect(PuppetCheck.settings[:private]).to eql('private.pem') PuppetCheck.settings[:output_format] = 'text' @@ -64,10 +63,10 @@ end end context '.execute_parsers' do it 'correctly organizes a set of files and invokes the correct parsers' do - # parser_output = instance_double('execute_parsers', files: %w[puppet.pp puppet_template.epp ruby.rb ruby_template.erb yaml.yaml yaml.yml json.json Puppetfile Modulefile foobarbaz], future: false, style: false, pl_args: [], rc_args: []) + # parser_output = instance_double('execute_parsers', files: %w[puppet.pp puppet_template.epp ruby.rb ruby_template.erb yaml.yaml yaml.yml json.json Puppetfile Modulefile foobarbaz], style: false, pl_args: [], rc_args: []) # expect(parser_output).to receive(:manifest).with(%w[puppet.pp]) # expect(parser_output).to receive(:template).with(%w[puppet_template.epp]) # expect(parser_output).to receive(:ruby).with(%w[ruby.rb]) # expect(parser_output).to receive(:template).with(%w[ruby_template.erb]) # expect(parser_output).to receive(:yaml).with(%w[yaml.yaml yaml.yml])