Sha256: c891ba4d4d39f4540264d2d3d5f3f911a248c82f7e3f4a9a2abb8082adf84d18

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

describe Metacrunch::File::Reader::ZipFileReader do
  describe ".accepts?" do
    it "accepts filenames this reader can process" do
      expect(described_class.accepts?("foo.zip")).to equal(true)
    end

    it "does not accept filenames this reader cannot process" do
      expect(described_class.accepts?("plain_file")).to equal(false)
      expect(described_class.accepts?("plain.zip.file")).to equal(false)
      expect(described_class.accepts?("foozip")).to equal(false)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
metacrunch-2.2.1 spec/metacrunch/file/reader/zip_reader_spec.rb
metacrunch-2.2.0 spec/metacrunch/file/reader/zip_reader_spec.rb