From f46a52a3344bdc8c3caf8a80c7af3ea5dec5e66b Mon Sep 17 00:00:00 2001 From: Sam Livingston-Gray Date: Mon, 13 Jul 2009 15:54:16 -0700 Subject: Add test for current module mount deprec warning. --- spec/unit/file_serving/configuration.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/unit/file_serving/configuration.rb b/spec/unit/file_serving/configuration.rb index 6f5dc115f..466c6a341 100755 --- a/spec/unit/file_serving/configuration.rb +++ b/spec/unit/file_serving/configuration.rb @@ -118,7 +118,7 @@ describe Puppet::FileServing::Configuration do config.find_mount("one", "mynode").should == "foo" end - it "should modules mount's environment to find a matching module if the named module cannot be found" do + it "should use the environment of the module mount to find a matching module if the named module cannot be found" do config = Puppet::FileServing::Configuration.create mod = mock 'module' @@ -128,6 +128,7 @@ describe Puppet::FileServing::Configuration do mount.expects(:environment).with("mynode").returns env config.stubs(:mounts).returns("modules" => mount) + Puppet.expects(:warning) config.find_mount("foo", "mynode").should equal(mount) end -- cgit