Sha256: 62eceabf0212010579ca8285fb5d6d7373e9c4966f2dae88f9c7cd07db48bb46
Contents?: true
Size: 736 Bytes
Versions: 2
Compression:
Stored size: 736 Bytes
Contents
require 'spec_helper' require 'druid/elements' describe Druid::Elements::Area do context "implementation" do let(:element) { double('element') } let(:area) { Druid::Elements::Area.new(element) } it "should know its coords" do expect(element).to receive(:attribute_value).with(:coords).and_return("1,2,3,4") expect(area.coords).to eql "1,2,3,4" end it "should know its shape" do expect(element).to receive(:attribute_value).with(:shape).and_return("circle") expect(area.shape).to eql "circle" end it "should know its href" do expect(element).to receive(:attribute_value).with(:href).and_return("twitter.com") expect(area.href).to eql "twitter.com" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
druid-ts-1.2.4 | spec/druid/elements/area_spec.rb |
druid-ts-1.2.3 | spec/druid/elements/area_spec.rb |