Sha256: 9bf23e2598c4420f3e05161e3cd4bdc6b0d3e8863381ae750be8e79c74c22a52

Contents?: true

Size: 462 Bytes

Versions: 92

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'

describe FormatParser::Image do
  context 'File data checks' do
    it 'succeeds with relevant attributes' do
      result = described_class.new(format: :jpg, width_px: 42, height_px: 10, image_orientation: 1)
      expect(result.nature).to eq(:image)
      expect(result.format).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

92 entries across 92 versions & 1 rubygems

Version Path
format_parser-2.10.0 spec/file_information_spec.rb
format_parser-2.9.0 spec/file_information_spec.rb
format_parser-2.8.0 spec/file_information_spec.rb
format_parser-2.7.2 spec/file_information_spec.rb
format_parser-2.7.1 spec/file_information_spec.rb
format_parser-2.7.0 spec/file_information_spec.rb
format_parser-2.6.0 spec/file_information_spec.rb
format_parser-2.5.0 spec/file_information_spec.rb
format_parser-2.4.5 spec/file_information_spec.rb
format_parser-2.4.4 spec/file_information_spec.rb
format_parser-2.4.3 spec/file_information_spec.rb
format_parser-2.3.0 spec/file_information_spec.rb
format_parser-2.2.1 spec/file_information_spec.rb
format_parser-2.2.0 spec/file_information_spec.rb
format_parser-2.1.0 spec/file_information_spec.rb
format_parser-2.0.0 spec/file_information_spec.rb
format_parser-2.0.0.pre.4 spec/file_information_spec.rb
format_parser-2.0.0.pre.3 spec/file_information_spec.rb
format_parser-2.0.0.pre.2 spec/file_information_spec.rb
format_parser-2.0.0.pre spec/file_information_spec.rb