diff options
author | Sam Livingston-Gray <geeksam@gmail.com> | 2009-07-13 15:54:16 -0700 |
---|---|---|
committer | Sam Livingston-Gray <geeksam@gmail.com> | 2009-07-13 15:54:16 -0700 |
commit | f46a52a3344bdc8c3caf8a80c7af3ea5dec5e66b (patch) | |
tree | 548aa27cd3c100050ee4244d5e80d44d1c2eeb1e | |
parent | 858d3334004bbcd642443a5de061b9733a8e765c (diff) | |
download | puppet-f46a52a3344bdc8c3caf8a80c7af3ea5dec5e66b.tar.gz puppet-f46a52a3344bdc8c3caf8a80c7af3ea5dec5e66b.tar.xz puppet-f46a52a3344bdc8c3caf8a80c7af3ea5dec5e66b.zip |
Add test for current module mount deprec warning.
-rwxr-xr-x | spec/unit/file_serving/configuration.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |