summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2014-06-03 11:13:35 -0400
committerAshley Penney <ashley.penney@puppetlabs.com>2014-06-03 11:15:20 -0400
commita364605f3b71b8a0857bbc2c47388f7bb9e11f82 (patch)
treee42d6d1a70d50ca4827b4bafbb57ba62aeedd513 /spec
parentfa45d594ade2f460ec59b35932d04cbca0ee1a84 (diff)
downloadpuppet-stdlib-a364605f3b71b8a0857bbc2c47388f7bb9e11f82.tar.gz
puppet-stdlib-a364605f3b71b8a0857bbc2c47388f7bb9e11f82.tar.bz2
Merge pull request #264 from apenney/fixes-for-tests
Fixes for PE3.3.
Diffstat (limited to 'spec')
-rwxr-xr-xspec/acceptance/fqdn_rotate_spec.rb1
-rwxr-xr-xspec/acceptance/parseyaml_spec.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/acceptance/fqdn_rotate_spec.rb b/spec/acceptance/fqdn_rotate_spec.rb
index b7f8bf8..fc8bea2 100755
--- a/spec/acceptance/fqdn_rotate_spec.rb
+++ b/spec/acceptance/fqdn_rotate_spec.rb
@@ -14,6 +14,7 @@ describe 'fqdn_rotate function', :unless => UNSUPPORTED_PLATFORMS.include?(fact(
shell("if [ -f #{facts_d}/fqdn.txt ] ; then rm #{facts_d}/fqdn.txt ; fi")
end
it 'fqdn_rotates floats' do
+ shell("mkdir -p #{facts_d}")
shell("echo 'fqdn=fakehost.localdomain' > #{facts_d}/fqdn.txt")
pp = <<-EOS
$a = ['a','b','c','d']
diff --git a/spec/acceptance/parseyaml_spec.rb b/spec/acceptance/parseyaml_spec.rb
index 4b4bf3d..5819837 100755
--- a/spec/acceptance/parseyaml_spec.rb
+++ b/spec/acceptance/parseyaml_spec.rb
@@ -26,7 +26,7 @@ describe 'parseyaml function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('o
EOS
apply_manifest(pp, :expect_failures => true) do |r|
- expect(r.stderr).to match(/syntax error/)
+ expect(r.stderr).to match(/(syntax error|did not find expected key)/)
end
end