Sha256: 1de28c50d753a1a09c7029156f4324e0fd808e7782f6be9daf21bd9a497f416f

Contents?: true

Size: 686 Bytes

Versions: 1

Compression:

Stored size: 686 Bytes

Contents

module Ddr
  module FileTools
    RSpec.describe Client do
  
      describe "extracting text" do
        let(:file_path) { File.expand_path("../../fixtures/sample.docx", __FILE__) }
        it "should extract the text content of the file" do
          expect(subject.run_tool(:text, file_path).output).to match(/This is a sample document./)
        end
      end

      describe "extracting metadata" do
        let(:file_path) { File.expand_path("../../fixtures/blue-devil.png", __FILE__) }
        it "should extract technical metadata from the file" do
          expect(subject.run_tool(:metadata, file_path).output.length).to_not eq(0)
        end
      end

    end
  end    
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ddr-filetools-0.4.0 spec/unit/client_spec.rb