diff options
| author | Luke Kanies <luke@madstop.com> | 2009-05-14 11:36:20 -0500 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-05-15 10:01:26 +1000 |
| commit | fb957ccb6636ce86bd98c141d5818c54bc0d4659 (patch) | |
| tree | 4ee5fd0ddc1e09dbb72bc06e6fcfd0caeee04f38 /spec/unit/file_serving | |
| parent | c6084093e67b1e415e49c192b3ac6f6b9aebc4ba (diff) | |
| download | puppet-fb957ccb6636ce86bd98c141d5818c54bc0d4659.tar.gz puppet-fb957ccb6636ce86bd98c141d5818c54bc0d4659.tar.xz puppet-fb957ccb6636ce86bd98c141d5818c54bc0d4659.zip | |
Modules now can find their own paths
Previously, when you created a module you had to specify
the path. Now Module instances can use the module path
to look up their paths, and there are methods for determining
whether the module is present (if the path is present).
Also cleaned up the methods for figuring out what's in
the module (plugins, etc.).
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/file_serving')
| -rwxr-xr-x | spec/unit/file_serving/mount/plugins.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/file_serving/mount/plugins.rb b/spec/unit/file_serving/mount/plugins.rb index c658b8cd6..ef842d12b 100755 --- a/spec/unit/file_serving/mount/plugins.rb +++ b/spec/unit/file_serving/mount/plugins.rb @@ -61,8 +61,8 @@ describe Puppet::FileServing::Mount::Plugins, "when searching for files" do end it "should return the plugin paths for each module that has plugins" do - one = stub 'module', :plugins? => true, :plugins => "/one" - two = stub 'module', :plugins? => true, :plugins => "/two" + one = stub 'module', :plugins? => true, :plugin_directory => "/one" + two = stub 'module', :plugins? => true, :plugin_directory => "/two" @environment.expects(:modules).returns [one, two] @mount.search("foo/bar").should == %w{/one /two} |
