summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-08-26 12:58:39 -0500
committerLuke Kanies <luke@madstop.com>2007-08-26 12:58:39 -0500
commit51ff72c42447e5b9e05db3b24530a4e628454396 (patch)
tree8e7618942fd6a0c7ada1edbe7527becb9325f224 /spec/unit
parent4e9c63181f4c3912e48ddd97782f07b89826d9fd (diff)
downloadpuppet-51ff72c42447e5b9e05db3b24530a4e628454396.tar.gz
puppet-51ff72c42447e5b9e05db3b24530a4e628454396.tar.xz
puppet-51ff72c42447e5b9e05db3b24530a4e628454396.zip
Adding a bit of testing for node names.
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/other/node.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/other/node.rb b/spec/unit/other/node.rb
index a29fb23cf..66d5ba9d7 100755
--- a/spec/unit/other/node.rb
+++ b/spec/unit/other/node.rb
@@ -44,6 +44,11 @@ describe Puppet::Node, " when initializing" do
@node = Puppet::Node.new("testing", :environment => "myenv")
@node.environment.should == "myenv"
end
+
+ it "should accept names passed in" do
+ @node = Puppet::Node.new("testing", :names => ["myenv"])
+ @node.names.should == ["myenv"]
+ end
end
describe Puppet::Node, " when returning the environment" do