summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-08-25 17:35:28 -0500
committerLuke Kanies <luke@madstop.com>2008-08-26 22:40:41 -0700
commit92e144b3051ebd177c034e692a59162b3902e128 (patch)
tree39ca9aa6d96dd944ffe61d8b3683972853296d51 /spec/unit/indirector
parent151a54ff7ac69aa2fa1708188ad75e444158e8a2 (diff)
downloadpuppet-92e144b3051ebd177c034e692a59162b3902e128.tar.gz
puppet-92e144b3051ebd177c034e692a59162b3902e128.tar.xz
puppet-92e144b3051ebd177c034e692a59162b3902e128.zip
Fixing a test in the module_files terminus
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/indirector')
-rwxr-xr-xspec/unit/indirector/module_files.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/unit/indirector/module_files.rb b/spec/unit/indirector/module_files.rb
index 20c9f499a..f5f9527df 100755
--- a/spec/unit/indirector/module_files.rb
+++ b/spec/unit/indirector/module_files.rb
@@ -96,13 +96,8 @@ describe Puppet::Indirector::ModuleFiles do
@instance = mock 'instance'
end
- it "should create the instance with the key used to find the instance" do
- @model.expects(:new).with { |key, *options| key == @request.key }
- @module_files.find(@request)
- end
-
it "should create the instance with the path at which the instance was found" do
- @model.expects(:new).with { |key, options| options[:path] == "/module/path/files/local/file" }
+ @model.expects(:new).with { |key, options| key == "/module/path/files/local/file" }
@module_files.find(@request)
end