spec/unit/configurer/downloader_spec.rb in puppet-2.7.3 vs spec/unit/configurer/downloader_spec.rb in puppet-2.7.4
- old
+ new
@@ -95,18 +95,19 @@
end
end
describe "when creating the catalog to do the downloading" do
before do
- @dler = Puppet::Configurer::Downloader.new("foo", "/download/path", "source")
+ @path = make_absolute("/download/path")
+ @dler = Puppet::Configurer::Downloader.new("foo", @path, "source")
end
it "should create a catalog and add the file to it" do
catalog = @dler.catalog
catalog.resources.size.should == 1
catalog.resources.first.class.should == Puppet::Type::File
- catalog.resources.first.name.should == "/download/path"
+ catalog.resources.first.name.should == @path
end
it "should specify that it is not managing a host catalog" do
@dler.catalog.host_config.should == false
end
@@ -119,10 +120,10 @@
source_name = tmpfile("source")
File.open(source_name, 'w') {|f| f.write('hola mundo') }
@dler = Puppet::Configurer::Downloader.new("foo", @dl_name, source_name)
end
- it "should not skip downloaded resources when filtering on tags" do
+ it "should not skip downloaded resources when filtering on tags", :fails_on_windows => true do
Puppet[:tags] = 'maytag'
@dler.evaluate
File.exists?(@dl_name).should be_true
end