Sha256: 698bc32b391d6063dbb84a8333f971a58242b80c5b14d2b0db2216d76148f39e

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

require 'spec_helper'
module Alf
  describe Tools, "tuple_heading" do

    it 'should work on the empty tuple' do
      Tools.tuple_heading({}).should eq(Heading::EMPTY)
    end

    it 'should work on a supplier-like tuple' do
      expected = Heading[:name => String, :old => FalseClass]
      Tools.tuple_heading(:name => "Jones", :old => false).should eq(expected)
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.12.2 spec/unit/alf-core/tools/test_tuple_heading.rb
alf-0.12.1 spec/unit/alf-core/tools/test_tuple_heading.rb
alf-0.12.0 spec/unit/alf-core/tools/test_tuple_heading.rb
alf-0.11.1 spec/unit/alf-core/tools/test_tuple_heading.rb
alf-0.11.0 spec/unit/alf-core/tools/test_tuple_heading.rb