<commit_before>require 'spec_helper'

describe 'Deleting Files' do
  let(:text_file) { File.open('spec/fixtures/text_file.txt', 'r') }

  uploader_class = Class.new do
    include Neutrino::Uploader

    def store_dir; 'uploads';       end
    def filename;  'text_file.txt'; end
  end

  context 'Using null storage', storage: :null do
    it 'does not delete a file' do
      uploader = uploader_class.new

      expect(uploader.delete).to be_nil
    end
  end

  context 'Using AWS storage', storage: :aws do
    it 'deletes the file from the stored location' do
      uploader = uploader_class.new

      uploader.store(text_file)
      uploader.delete

      expect(uploader.exists?).to be_false
    end
  end
end
<commit_msg>Update false assertion syntax<commit_after>require 'spec_helper'

describe 'Deleting Files' do
  let(:text_file) { File.open('spec/fixtures/text_file.txt', 'r') }

  uploader_class = Class.new do
    include Neutrino::Uploader

    def store_dir; 'uploads';       end
    def filename;  'text_file.txt'; end
  end

  context 'Using null storage', storage: :null do
    it 'does not delete a file' do
      uploader = uploader_class.new

      expect(uploader.delete).to be_nil
    end
  end

  context 'Using AWS storage', storage: :aws do
    it 'deletes the file from the stored location' do
      uploader = uploader_class.new

      uploader.store(text_file)
      uploader.delete

      expect(uploader.exists?).to be_falsey
    end
  end
end

{'fraction_non_alphanumeric': 0.09060175794455713, 'fraction_numerical': 0.0, 'mean_word_length': 3.065934065934066, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2348027', 'n_tokens_mistral': 494, 'n_tokens_neox': 468, 'n_words': 139}