summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/functions
diff options
context:
space:
mode:
authorPieter van de Bruggen <pieter@puppetlabs.com>2011-05-17 15:07:18 -0700
committerPieter van de Bruggen <pieter@puppetlabs.com>2011-05-17 15:07:18 -0700
commitb63fd841a188f9b21aed40c7b2f046a144fd37c9 (patch)
tree3c5522df6b0038a8cf85e80bfb0737af5aa9ec2d /spec/unit/parser/functions
parentc8215c550cbe7e3ad059637202b02267d401946d (diff)
parent51855e7f17877871aa8ec4f1ed7226c1d95ce66b (diff)
Merge branch 'next'
Diffstat (limited to 'spec/unit/parser/functions')
-rwxr-xr-xspec/unit/parser/functions/create_resources_spec.rb4
-rwxr-xr-xspec/unit/parser/functions/inline_template_spec.rb2
-rwxr-xr-xspec/unit/parser/functions/shellquote_spec.rb6
-rwxr-xr-xspec/unit/parser/functions/template_spec.rb2
4 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/parser/functions/create_resources_spec.rb b/spec/unit/parser/functions/create_resources_spec.rb
index 88a67e369..da76e75d0 100755
--- a/spec/unit/parser/functions/create_resources_spec.rb
+++ b/spec/unit/parser/functions/create_resources_spec.rb
@@ -114,7 +114,7 @@ notify{tester:}
@scope.resource=Puppet::Parser::Resource.new('class', 't', :scope => @scope)
Puppet::Parser::Functions.function(:create_resources)
end
- it 'should be able to create classes' do
+ it 'should be able to create classes', :'fails_on_ruby_1.9.2' => true do
@scope.function_create_resources(['class', {'bar'=>{'one'=>'two'}}])
@scope.compiler.compile
@compiler.catalog.resource(:notify, "test")['message'].should == 'two'
@@ -123,7 +123,7 @@ notify{tester:}
it 'should fail to create non-existing classes' do
lambda { @scope.function_create_resources(['class', {'blah'=>{'one'=>'two'}}]) }.should raise_error(ArgumentError ,'could not find hostclass blah')
end
- it 'should be able to add edges' do
+ it 'should be able to add edges', :'fails_on_ruby_1.9.2' => true do
@scope.function_create_resources(['class', {'bar'=>{'one'=>'two', 'require' => 'Notify[tester]'}}])
@scope.compiler.compile
rg = @scope.compiler.catalog.to_ral.relationship_graph
diff --git a/spec/unit/parser/functions/inline_template_spec.rb b/spec/unit/parser/functions/inline_template_spec.rb
index a9ac0c2d0..47dcae15e 100755
--- a/spec/unit/parser/functions/inline_template_spec.rb
+++ b/spec/unit/parser/functions/inline_template_spec.rb
@@ -1,7 +1,7 @@
#!/usr/bin/env rspec
require 'spec_helper'
-describe "the inline_template function" do
+describe "the inline_template function", :'fails_on_ruby_1.9.2' => true do
before :all do
Puppet::Parser::Functions.autoloader.loadall
end
diff --git a/spec/unit/parser/functions/shellquote_spec.rb b/spec/unit/parser/functions/shellquote_spec.rb
index b100b4913..bfa2969ea 100755
--- a/spec/unit/parser/functions/shellquote_spec.rb
+++ b/spec/unit/parser/functions/shellquote_spec.rb
@@ -53,7 +53,7 @@ describe "the shellquote function" do
result.should(eql( "'$PATH' 'foo$bar' '\"x$\"'"))
end
- it "should deal with apostrophes (single quotes)" do
+ it "should deal with apostrophes (single quotes)", :'fails_on_ruby_1.9.2' => true do
result = @scope.function_shellquote(
["'foo'bar'", "`$'EDITOR'`"])
result.should(eql(
@@ -65,12 +65,12 @@ describe "the shellquote function" do
result.should(eql( "'`echo *`' '`ls \"$MAILPATH\"`'"))
end
- it "should deal with both single and double quotes" do
+ it "should deal with both single and double quotes", :'fails_on_ruby_1.9.2' => true do
result = @scope.function_shellquote( ['\'foo"bar"xyzzy\'', '"foo\'bar\'xyzzy"'])
result.should(eql( '"\'foo\\"bar\\"xyzzy\'" "\\"foo\'bar\'xyzzy\\""'))
end
- it "should handle multiple quotes *and* dollars and backquotes" do
+ it "should handle multiple quotes *and* dollars and backquotes", :'fails_on_ruby_1.9.2' => true do
result = @scope.function_shellquote( ['\'foo"$x`bar`"xyzzy\''])
result.should(eql( '"\'foo\\"\\$x\\`bar\\`\\"xyzzy\'"'))
end
diff --git a/spec/unit/parser/functions/template_spec.rb b/spec/unit/parser/functions/template_spec.rb
index e7ee974d3..6bce69534 100755
--- a/spec/unit/parser/functions/template_spec.rb
+++ b/spec/unit/parser/functions/template_spec.rb
@@ -1,7 +1,7 @@
#!/usr/bin/env rspec
require 'spec_helper'
-describe "the template function" do
+describe "the template function", :'fails_on_ruby_1.9.2' => true do
before :all do
Puppet::Parser::Functions.autoloader.loadall
end