HomePhorge

(PUP-1381) make file_setting spec test more robust
8516d90fbc63Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-1381) make file_setting spec test more robust

A new call to self.resource_type in Puppet::Resource#initialize can cause
the loading of type code as a side effect. This interfered with the mocking
for the test

Puppet::Settings::FileSetting when being converted to a resource
should manage existent files even if 'create_files' is not enabled

Add a stubs call to one of the uncritical expectations so that
additional calls are not considered as spurious.

Details

Provenance
Felix Frank <Felix.Frank@Alumni.TU-Berlin.de>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU7d7b7017587e: (PUP-1381) issue warnings to current users of cron purging
Branches
Unknown
Tags
Unknown

Event Timeline

Felix Frank <Felix.Frank@Alumni.TU-Berlin.de> committed rPU8516d90fbc63: (PUP-1381) make file_setting spec test more robust (authored by Felix Frank <Felix.Frank@Alumni.TU-Berlin.de>).Apr 26 2014, 12:17 AM