Sha256: 3c31f77a22a7128bb286dd5934ad1bb669619d5fe37f72c27f5d4f6854b93a82

Contents?: true

Size: 506 Bytes

Versions: 8

Compression:

Stored size: 506 Bytes

Contents

require 'spec_helper'

describe FormatParser::FileInformation do

  context "File data checks" do
    it 'succeeds with relevant attributes' do
      result = described_class.new(file_nature: :image, file_type: :jpg, width_px: 42, height_px: 10, image_orientation: 1)
      expect(result.file_nature).to eq(:image)
      expect(result.file_type).to eq(:jpg)
      expect(result.width_px).to eq(42)
      expect(result.height_px).to eq(10)
      expect(result.image_orientation).to eq(1)
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
format_parser-0.1.7 spec/file_information_spec.rb
format_parser-0.1.6 spec/file_information_spec.rb
format_parser-0.1.5 spec/file_information_spec.rb
format_parser-0.1.4 spec/file_information_spec.rb
format_parser-0.1.3 spec/file_information_spec.rb
format_parser-0.1.2 spec/file_information_spec.rb
format_parser-0.1.1 spec/file_information_spec.rb
format_parser-0.1.0 spec/file_information_spec.rb