summaryrefslogtreecommitdiffstats
path: root/spec/integration
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-08-23 18:25:18 -0500
committerLuke Kanies <luke@madstop.com>2008-08-26 22:40:39 -0700
commit0a05720e6c4bd0875fc03b53263ff26c6fe14de2 (patch)
tree9d51813a23f8a3a9d16b976bd67fc64b0adb7c2c /spec/integration
parent237b7b294bf90c87891964d01429bbdd42a92524 (diff)
downloadpuppet-0a05720e6c4bd0875fc03b53263ff26c6fe14de2.tar.gz
puppet-0a05720e6c4bd0875fc03b53263ff26c6fe14de2.tar.xz
puppet-0a05720e6c4bd0875fc03b53263ff26c6fe14de2.zip
FileServing Configurations now expect unqualified files.
This fits in with the fact that the indirection requests split URIs and set the request key to an unqualified path rather than a fully-qualified path. The whole system is unqualified end-to-end, now, except when you're specifically asking for a full, local file name. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/integration')
-rwxr-xr-xspec/integration/file_serving/configuration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/file_serving/configuration.rb b/spec/integration/file_serving/configuration.rb
index cb5a23d3b..dfdda402d 100755
--- a/spec/integration/file_serving/configuration.rb
+++ b/spec/integration/file_serving/configuration.rb
@@ -29,12 +29,12 @@ describe Puppet::FileServing::Configuration, " when finding files with Puppet::F
it "should return nil if the file does not exist" do
FileTest.expects(:exists?).with("/my/path/my/file").returns(false)
- @config.file_path("/mymount/my/file").should be_nil
+ @config.file_path("mymount/my/file").should be_nil
end
it "should return the full file path if the file exists" do
FileTest.expects(:exists?).with("/my/path/my/file").returns(true)
- @config.file_path("/mymount/my/file").should == "/my/path/my/file"
+ @config.file_path("mymount/my/file").should == "/my/path/my/file"
end
after do