Skip to content

Commit 00090dd

Browse files
committed
Method no longer exists - remove its specs
1 parent c929881 commit 00090dd

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

spec/octocatalog-diff/tests/catalog/computed_spec.rb

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -292,30 +292,6 @@
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)

0 commit comments

Comments
 (0)