diff options
author | Colleen Murphy <cmurphy@users.noreply.github.com> | 2014-10-28 15:30:17 -0700 |
---|---|---|
committer | Colleen Murphy <cmurphy@users.noreply.github.com> | 2014-10-28 15:30:17 -0700 |
commit | cfc79e9831fb530b4a34bb79db119969b3a166b3 (patch) | |
tree | c955c144ec2386607f2ad7ac69edb1bcf44df320 /spec/acceptance/bool2num_spec.rb | |
parent | 759cbdec886bebb859d8def9323c139faf99c024 (diff) | |
parent | 51f1d574d92cf686ac79e57e69d8aff31caf2925 (diff) |
Merge pull request #344 from cyberious/TestCaseFixes
Fix testcases for Future Parser and resolve issue with values_at in assuming that it was dealing with a string
Diffstat (limited to 'spec/acceptance/bool2num_spec.rb')
-rwxr-xr-x | spec/acceptance/bool2num_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/acceptance/bool2num_spec.rb b/spec/acceptance/bool2num_spec.rb index 7a70311..52ff75b 100755 --- a/spec/acceptance/bool2num_spec.rb +++ b/spec/acceptance/bool2num_spec.rb @@ -4,11 +4,11 @@ require 'spec_helper_acceptance' describe 'bool2num function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do describe 'success' do ['false', 'f', '0', 'n', 'no'].each do |bool| - it 'should convert a given boolean, #{bool}, to 0' do + it "should convert a given boolean, #{bool}, to 0" do pp = <<-EOS - $input = #{bool} + $input = "#{bool}" $output = bool2num($input) - notify { $output: } + notify { "$output": } EOS apply_manifest(pp, :catch_failures => true) do |r| @@ -18,11 +18,11 @@ describe 'bool2num function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('op end ['true', 't', '1', 'y', 'yes'].each do |bool| - it 'should convert a given boolean, #{bool}, to 1' do + it "should convert a given boolean, #{bool}, to 1" do pp = <<-EOS - $input = #{bool} + $input = "#{bool}" $output = bool2num($input) - notify { $output: } + notify { "$output": } EOS apply_manifest(pp, :catch_failures => true) do |r| |