summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/scope.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-06-11 18:36:33 -0500
committerLuke Kanies <luke@madstop.com>2009-06-11 18:36:33 -0500
commitde55e19074502f6a0286a4b90edcdf51985dd69f (patch)
treef7990026a6e80ac090af8027ccf42b077f904024 /spec/unit/parser/scope.rb
parente4ae870f6103aacbba48a06e366168aaaa67402b (diff)
downloadpuppet-de55e19074502f6a0286a4b90edcdf51985dd69f.tar.gz
puppet-de55e19074502f6a0286a4b90edcdf51985dd69f.tar.xz
puppet-de55e19074502f6a0286a4b90edcdf51985dd69f.zip
Cleaning up scope tests a bit
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/parser/scope.rb')
-rwxr-xr-xspec/unit/parser/scope.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/unit/parser/scope.rb b/spec/unit/parser/scope.rb
index b0c0a8ef3..a9784e03b 100755
--- a/spec/unit/parser/scope.rb
+++ b/spec/unit/parser/scope.rb
@@ -15,7 +15,7 @@ describe Puppet::Parser::Scope do
it "should default to an empty string" do
@scope.lookupvar("var").should == ""
end
-
+
it "should return an string when asked for a string" do
@scope.lookupvar("var", true).should == ""
end
@@ -109,7 +109,7 @@ describe Puppet::Parser::Scope do
end
end
- describe Puppet::Parser::Scope, "when setvar is called with append=true" do
+ describe "when setvar is called with append=true" do
it "should raise error if the variable is already defined in this scope" do
@scope.setvar("var","1",nil,nil,false)
lambda { @scope.setvar("var","1",nil,nil,true) }.should raise_error(Puppet::ParseError)
@@ -134,8 +134,7 @@ describe Puppet::Parser::Scope do
end
- describe Puppet::Parser::Scope, "when calling number?" do
-
+ describe "when calling number?" do
it "should return nil if called with anything not a number" do
Puppet::Parser::Scope.number?([2]).should be_nil
end