spec/cleaner_spec.rb in backup-3.0.23 vs spec/cleaner_spec.rb in backup-3.0.24

- old
+ new

@@ -219,10 +219,14 @@ before do cleaner.instance_variable_set(:@model, model) FileUtils.unstub(:mkdir_p) end + after do + Backup::Config.send(:reset!) + end + context 'when files exist in the packaging folder' do it 'should return true' do Dir.mktmpdir do |path| Backup::Config.update(:root_path => path) FileUtils.mkdir_p( @@ -249,9 +253,13 @@ describe '#tmp_path_package_files' do before do cleaner.instance_variable_set(:@model, model) FileUtils.unstub(:mkdir_p) FileUtils.unstub(:touch) + end + + after do + Backup::Config.send(:reset!) end context 'when packaging files exist in the tmp_path' do it 'should return the files' do Dir.mktmpdir do |path|