Sha256: 0d857177b8ca651132a3bc954dd665db240d36e971f5937950204d643448a7e8

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

require 'spec_helper'
module Alf
  module Tools
    describe "#tuple_heading" do
      
      subject{ Tools.tuple_heading(tuple) }

      describe 'on the empty tuple' do
        let(:tuple){ {} }
        it { should == Heading::EMPTY }
      end
     
      describe 'on a supplier-like tuple' do
        let(:tuple){ {:name => "Jones", :old => false} }
        it { should == Heading[:name => String, :old => FalseClass] }
      end
     
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-0.10.1 spec/unit/tools/test_tuple_heading.rb