File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
spec/octocatalog-diff/tests/catalog Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 292292 end
293293 end
294294
295- describe '#cleanup_checkout_dir' do
296- it 'should remove a directory if one exists' do
297- opts = { node : 'foo' , branch : 'bar' , bootstrapped_dir : OctocatalogDiff ::Spec . fixture_path ( 'null' ) }
298- obj = OctocatalogDiff ::Catalog ::Computed . new ( opts )
299- logger , _logger_str = OctocatalogDiff ::Spec . setup_logger
300- begin
301- dir = Dir . mktmpdir
302- expect ( File . directory? ( dir ) ) . to eq ( true )
303- obj . send ( :cleanup_checkout_dir , dir , logger )
304- expect ( File . directory? ( dir ) ) . to eq ( false )
305- ensure
306- OctocatalogDiff ::Spec . clean_up_tmpdir ( dir )
307- end
308- end
309-
310- it 'should not error if a directory does not exist' do
311- opts = { node : 'foo' , branch : 'bar' , bootstrapped_dir : OctocatalogDiff ::Spec . fixture_path ( 'null' ) }
312- obj = OctocatalogDiff ::Catalog ::Computed . new ( opts )
313- logger , _logger_str = OctocatalogDiff ::Spec . setup_logger
314- dir = OctocatalogDiff ::Spec . fixture_path ( 'null' )
315- expect { obj . send ( :cleanup_checkout_dir , dir , logger ) } . not_to raise_error
316- end
317- end
318-
319295 describe '#assert_that_puppet_environment_directory_exists' do
320296 before ( :each ) do
321297 allow ( File ) . to receive ( :"directory?" ) . with ( '/tmp/assert/environments/yup' ) . and_return ( true )
You can’t perform that action at this time.
0 commit comments