Sha256: b361c00608235dba73f0b7bc5d65a562a24a7f7db0b29a95e981791943673c32

Contents?: true

Size: 360 Bytes

Versions: 7

Compression:

Stored size: 360 Bytes

Contents

require "spec_helper"

describe Microformat::AttributeDefinition do
  subject { Microformat::AttributeDefinition }

  describe "#initialize" do
    it "should accept a block of nested attributes" do
      map = subject.new do |map|
        map.attribute(:one)
        map.attribute(:two)
      end

      expect(map.attributes.size).to eq(2)
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
elcamino-microformat-0.0.8 spec/microformat/attribute_definition_spec.rb
microformat-0.0.7 spec/microformat/attribute_definition_spec.rb
microformat-0.0.6 spec/microformat/attribute_definition_spec.rb
microformat-0.0.5 spec/microformat/attribute_definition_spec.rb
microformat-0.0.4 spec/microformat/attribute_definition_spec.rb
microformat-0.0.3 spec/microformat/attribute_definition_spec.rb
microformat-0.0.2 spec/microformat/attribute_definition_spec.rb