summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/ast/vardef.rb
diff options
context:
space:
mode:
authorIan Taylor <ian@lorf.org>2009-06-05 12:39:04 -0400
committerJames Turnbull <james@lovedthanlost.net>2009-06-06 09:12:00 +1000
commit4f2c066a97e59a89df64af4b25beac6f3f0553c2 (patch)
tree126540beec3c65448e01e1b48d27275ec4ee6ea4 /spec/unit/parser/ast/vardef.rb
parent97e6975d69f239e24993315a25a3117b1daa48c3 (diff)
downloadpuppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.tar.gz
puppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.tar.xz
puppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.zip
Removed extra whitespace from end of lines
Diffstat (limited to 'spec/unit/parser/ast/vardef.rb')
-rwxr-xr-xspec/unit/parser/ast/vardef.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/unit/parser/ast/vardef.rb b/spec/unit/parser/ast/vardef.rb
index 6bd355c89..14de68923 100755
--- a/spec/unit/parser/ast/vardef.rb
+++ b/spec/unit/parser/ast/vardef.rb
@@ -12,11 +12,11 @@ describe Puppet::Parser::AST::VarDef do
it "should evaluate arguments" do
name = mock 'name'
value = mock 'value'
-
+
name.expects(:safeevaluate).with(@scope)
value.expects(:safeevaluate).with(@scope)
- vardef = Puppet::Parser::AST::VarDef.new :name => name, :value => value, :file => nil,
+ vardef = Puppet::Parser::AST::VarDef.new :name => name, :value => value, :file => nil,
:line => nil
vardef.evaluate(@scope)
end
@@ -24,21 +24,21 @@ describe Puppet::Parser::AST::VarDef do
it "should be in append=false mode if called without append" do
name = stub 'name', :safeevaluate => "var"
value = stub 'value', :safeevaluate => "1"
-
+
@scope.expects(:setvar).with { |name,value,file,line,append| append == nil }
-
- vardef = Puppet::Parser::AST::VarDef.new :name => name, :value => value, :file => nil,
+
+ vardef = Puppet::Parser::AST::VarDef.new :name => name, :value => value, :file => nil,
:line => nil
vardef.evaluate(@scope)
end
-
+
it "should call scope in append mode if append is true" do
name = stub 'name', :safeevaluate => "var"
value = stub 'value', :safeevaluate => "1"
-
+
@scope.expects(:setvar).with { |name,value,file,line,append| append == true }
-
- vardef = Puppet::Parser::AST::VarDef.new :name => name, :value => value, :file => nil,
+
+ vardef = Puppet::Parser::AST::VarDef.new :name => name, :value => value, :file => nil,
:line => nil, :append => true
vardef.evaluate(@scope)
end