Sha256: 57a3a7c9db8496915a729bad9d68bcd565b3006359fc32cfccfca5c66facb67f

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

require 'spec_helper'

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

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

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

    it 'casts width to an integer' do
      expect(instance.width).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/absolute_spec.rb
riiif-2.0.0.beta1 spec/services/riiif/size/absolute_spec.rb