spec/unit/configurer/downloader_spec.rb in puppet-2.7.5 vs spec/unit/configurer/downloader_spec.rb in puppet-2.7.6
- old
+ new
@@ -95,11 +95,11 @@
end
end
describe "when creating the catalog to do the downloading" do
before do
- @path = make_absolute("/download/path")
- @dler = Puppet::Configurer::Downloader.new("foo", @path, "source")
+ @path = File.expand_path("/download/path")
+ @dler = Puppet::Configurer::Downloader.new("foo", @path, File.expand_path("source"))
end
it "should create a catalog and add the file to it" do
catalog = @dler.catalog
catalog.resources.size.should == 1