test/dirmon_entry_test.rb in rocketjob-2.0.0 vs test/dirmon_entry_test.rb in rocketjob-2.1.1

- old
+ new

@@ -205,11 +205,11 @@ ) @file = Tempfile.new('archive') @file_name = @file.path @pathname = Pathname.new(@file_name) File.open(@file_name, 'w') { |file| file.write('Hello World') } - assert File.exists?(@file_name) + assert File.exist?(@file_name) @archive_real_name = @archive_path.join("#{@job.id}_#{File.basename(@file_name)}").to_s end after do @file.delete if @file @@ -228,10 +228,10 @@ end describe '#archive_file' do it 'archive file' do assert_equal @archive_real_name, @entry.send(:archive_file, @job, Pathname.new(@file_name)) - assert File.exists?(@archive_real_name) + assert File.exist?(@archive_real_name) end end describe '#upload_default' do it 'sets full_file_name in Hash argument' do