Sha256: 0b932defd6fa33bc518ee8190f232cc512fc96223fa6cb238bf488626d69b76e

Contents?: true

Size: 408 Bytes

Versions: 38

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

38 entries across 38 versions & 2 rubygems

Version Path
openseadragon-1.0.16 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.15 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.14 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.13 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.12 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.11 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.10 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.9 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.8 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.7 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.6 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.5 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.4 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.3 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.2 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.1 spec/models/openseadragon/image_spec.rb
openseadragon-1.0.0 spec/models/openseadragon/image_spec.rb
openseadragon-0.9.0 spec/models/openseadragon/image_spec.rb
openseadragon-0.8.0 spec/models/openseadragon/image_spec.rb
openseadragon-0.7.0 spec/models/openseadragon/image_spec.rb