Sha256: 0ae881c29e93a071772a5cabaa10088c3c3409e8e876bd40914b183f4a7ffa3c
Contents?: true
Size: 662 Bytes
Versions: 3
Compression:
Stored size: 662 Bytes
Contents
module Ddr module Extraction RSpec.describe Extractor do describe "extracting text" do let(:file) { File.expand_path("../../fixtures/sample.docx", __FILE__) } it "should extract the text content of the file" do expect(subject.extract(:text, file).read).to match(/This is a sample document./) end end describe "extracting metadata" do let(:file) { File.expand_path("../../fixtures/blue-devil.png", __FILE__) } it "should extract technical metadata from the file" do expect(subject.extract(:metadata, file).read.length).to_not eq(0) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ddr-extraction-0.2.1 | spec/unit/extractor_spec.rb |
ddr-extraction-0.2.0 | spec/unit/extractor_spec.rb |
ddr-extraction-0.1.0 | spec/unit/extractor_spec.rb |