Sha256: 8acf6ba8396229f6d79e869c597717701dc07494b4aa122c07767d8d9dfff674

Contents?: true

Size: 526 Bytes

Versions: 2

Compression:

Stored size: 526 Bytes

Contents

require 'spec_helper'
require 'druid/elements'

describe Druid::Elements::Canvas do
  context "implementation" do
    let(:element) { double('canvas_element') }
    let(:canvas) { Druid::Elements::Canvas.new(element) }

    it "should knwo its width" do
      expect(canvas).to receive(:size).and_return('width' => 400)
      expect(canvas.width).to eql 400
    end

    it "should know its height" do
      expect(canvas).to receive(:size).and_return('height' => 100)
      expect(canvas.height).to eql 100
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
druid-ts-1.2.4 spec/druid/elements/canvas_spec.rb
druid-ts-1.2.3 spec/druid/elements/canvas_spec.rb