diff options
author | Luke Kanies <luke@madstop.com> | 2009-02-17 17:24:25 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2009-02-18 22:38:44 -0600 |
commit | 4b5ec82d32babdf3ccc935748eb80bca30b379ff (patch) | |
tree | 08da2bd25ac213364e7116b4634e6a2950724bde | |
parent | 458642b8660c8f0507b1f66b67bade5c60efe64a (diff) | |
download | puppet-4b5ec82d32babdf3ccc935748eb80bca30b379ff.tar.gz puppet-4b5ec82d32babdf3ccc935748eb80bca30b379ff.tar.xz puppet-4b5ec82d32babdf3ccc935748eb80bca30b379ff.zip |
reformatting the environment tests
Signed-off-by: Luke Kanies <luke@madstop.com>
-rwxr-xr-x | spec/unit/node/environment.rb | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/spec/unit/node/environment.rb b/spec/unit/node/environment.rb index 872c70912..48fe64280 100755 --- a/spec/unit/node/environment.rb +++ b/spec/unit/node/environment.rb @@ -17,21 +17,21 @@ describe Puppet::Node::Environment do it "should treat an environment specified as names or strings as equivalent" do Puppet::Node::Environment.new(:one).should equal(Puppet::Node::Environment.new("one")) end -end - -describe Puppet::Node::Environment, " when modeling a specific environment" do - it "should have a method for returning the environment name" do - Puppet::Node::Environment.new("testing").name.should == :testing - end - - it "should provide an array-like accessor method for returning any environment-specific setting" do - env = Puppet::Node::Environment.new("testing") - env.should respond_to(:[]) - end - it "should ask the Puppet settings instance for the setting qualified with the environment name" do - Puppet.settings.expects(:value).with("myvar", :testing).returns("myval") - env = Puppet::Node::Environment.new("testing") - env["myvar"].should == "myval" + describe "when modeling a specific environment" do + it "should have a method for returning the environment name" do + Puppet::Node::Environment.new("testing").name.should == :testing + end + + it "should provide an array-like accessor method for returning any environment-specific setting" do + env = Puppet::Node::Environment.new("testing") + env.should respond_to(:[]) + end + + it "should ask the Puppet settings instance for the setting qualified with the environment name" do + Puppet.settings.expects(:value).with("myvar", :testing).returns("myval") + env = Puppet::Node::Environment.new("testing") + env["myvar"].should == "myval" + end end end |