Sha256: 49e5400e111cc7555858f85f003b5c0a7d437378653ab6f0e5624e62c6b7a953

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

require 'spec_helper' 
module Alf
  module Types
    describe "Heading", "#union" do
      subject{ h1 + h2 }

      describe "on empty headings" do
        let(:h1){ Heading::EMPTY }
        let(:h2){ Heading::EMPTY }
        it{ should eq(Heading::EMPTY) }
      end

      describe "on equal headings" do
        let(:h1){ Heading[:name => String, :price => Float] }
        let(:h2){ Heading[:name => String, :price => Float] }
        it{ should eq(Heading[:name => String, :price => Float]) }
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-0.10.1 spec/unit/types/heading/test_union.rb