Sha256: 6a4783cf2fa4ec17badc342df36e7232c7cf9b132918d2d25cde0aac9192b008

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

require 'spec_helper'

RSpec.describe Riiif::Size::Height do
  let(:image_info) { double }

  context 'when initialized with strings' do
    let(:instance) { described_class.new(image_info, '50') }

    it 'casts height to an integer' do
      expect(instance.height).to eq 50
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
riiif-2.0.0.beta2 spec/services/riiif/size/height_spec.rb
riiif-2.0.0.beta1 spec/services/riiif/size/height_spec.rb