diff options
| author | James Turnbull <james@lovedthanlost.net> | 2008-10-05 22:50:18 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-10-05 22:50:18 +1100 |
| commit | 06edac4a23b7d0c27e471c837fa34432dbc5f806 (patch) | |
| tree | 01e55f1277b6197ffbe2b2ef79f0d6a146e05cc9 /spec/unit/node.rb | |
| parent | 79bb1f201c1479a15fa2f0f8ad5467bd357ed707 (diff) | |
| download | puppet-06edac4a23b7d0c27e471c837fa34432dbc5f806.tar.gz puppet-06edac4a23b7d0c27e471c837fa34432dbc5f806.tar.xz puppet-06edac4a23b7d0c27e471c837fa34432dbc5f806.zip | |
Fixed additional environments tests
Diffstat (limited to 'spec/unit/node.rb')
| -rwxr-xr-x | spec/unit/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/node.rb b/spec/unit/node.rb index cd221498b..a72c117ff 100755 --- a/spec/unit/node.rb +++ b/spec/unit/node.rb @@ -45,7 +45,7 @@ describe Puppet::Node, "when initializing" do end it "should accept an environment value" do - Puppet.settings.stubs(:value).with(:environments).returns("myenv") + Puppet.settings.stubs(:value).with(:environment).returns("myenv") @node = Puppet::Node.new("testing", :environment => "myenv") @node.environment.should == "myenv" end @@ -53,7 +53,7 @@ end describe Puppet::Node, "when returning the environment" do before do - Puppet.settings.stubs(:value).with(:environments).returns("one,two") + Puppet.settings.stubs(:value).with(:environment).returns("one,two") Puppet.settings.stubs(:value).with(:environment).returns("one") @node = Puppet::Node.new("testnode") end |
