Sha256: 0b932defd6fa33bc518ee8190f232cc512fc96223fa6cb238bf488626d69b76e

Contents?: true

Size: 408 Bytes

Versions: 39

Compression:

Stored size: 408 Bytes

Contents

require 'spec_helper'

describe Openseadragon::Image do
  subject { Openseadragon::Image.new id: 'some-id', width: 400, height: 500 }
  
  describe "#to_tilesource" do
    it "should have an id, width and height" do
      expect(subject.to_tilesource[:identifier]).to eq 'some-id'
      expect(subject.to_tilesource[:width]).to eq 400
      expect(subject.to_tilesource[:height]).to eq 500
    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
openseadragon-0.7.0 spec/models/openseadragon/image_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/openseadragon-0.6.0/spec/models/openseadragon/image_spec.rb
openseadragon-0.6.0 spec/models/openseadragon/image_spec.rb
openseadragon-0.5.0 spec/models/openseadragon/image_spec.rb
openseadragon-0.4.0 spec/models/openseadragon/image_spec.rb
openseadragon-0.3.3 spec/models/openseadragon/image_spec.rb
openseadragon-0.3.2 spec/models/openseadragon/image_spec.rb
openseadragon-0.3.1 spec/models/openseadragon/image_spec.rb
openseadragon-0.3.0 spec/models/openseadragon/image_spec.rb
openseadragon-0.2.1 spec/models/openseadragon/image_spec.rb
openseadragon-0.2.0 spec/models/openseadragon/image_spec.rb
openseadragon-0.1.0 spec/models/openseadragon/image_spec.rb
openseadragon-0.0.9 spec/models/openseadragon/image_spec.rb
openseadragon-0.0.8 spec/models/openseadragon/image_spec.rb
openseadragon-0.0.7 spec/models/openseadragon/image_spec.rb
openseadragon-0.0.6 spec/models/openseadragon/image_spec.rb
openseadragon-0.0.5 spec/models/openseadragon/image_spec.rb
openseadragon-0.0.4 spec/models/openseadragon/image_spec.rb
openseadragon-0.0.3 spec/models/openseadragon/image_spec.rb