Sha256: 67ef62d2e36c3ec0e9d3b32cbe1f253489da74cd44f6460893e0f33ce5904833

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe FileDeleter do
  context '#use' do
    it 'deletes file' do
      test_file = create_file('file.html', '<html></html>')

      file = double 'file'
      expect(file).to receive(:path).and_return(test_file)

      detector = FileDeleter.new
      detector.use file

      expect(File).not_to be_exist(file)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test_server-0.5.2 spec/file_deleter_spec.rb