Sha256: 8fd80db52b9bdb8db29bd03be037ef4aeb57700f8229e5abe7b76278eac56d46

Contents?: true

Size: 452 Bytes

Versions: 4

Compression:

Stored size: 452 Bytes

Contents

require 'spec_helper'
module Alf
  describe Tuple, "heading" do

    subject{ tuple.heading }

    describe 'on a tuple factored through an explicit type' do
      let(:tuple){ Tuple[status: Integer].new(status: 12) }

      it{ should eq(Heading.new(status: Integer)) }
    end

    describe 'on a tuple factored through coercion' do
      let(:tuple){ Tuple.coerce(status: 12) }

      it{ should eq(Heading.new(status: Fixnum)) }
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-relation/tuple/test_heading.rb
alf-core-0.14.0 spec/unit/alf-relation/tuple/test_heading.rb
alf-core-0.13.1 spec/unit/alf-relation/tuple/test_heading.rb
alf-core-0.13.0 spec/unit/alf-relation/tuple/test_heading.rb