Sha256: 03945faec86163d260fc376642eb4965e89a08a171381b95bc90c32a29792f9f

Contents?: true

Size: 677 Bytes

Versions: 4

Compression:

Stored size: 677 Bytes

Contents

require 'spec_helper'
module Alf
  module Algebra
    describe Project, 'heading' do

      let(:operand){
        an_operand.with_heading(:id => Integer, :name => String)
      }

      subject{ op.heading }

      context '-no-allbut' do
        let(:op){ 
          a_lispy.project(operand, [:id])
        }
        let(:expected){
          Heading[:id => Integer]
        }

        it { should eq(expected) }
      end

      context '--allbut' do
        let(:op){ 
          a_lispy.project(operand, [:name], :allbut => true)
        }
        let(:expected){
          Heading[:id => Integer]
        }

        it { should eq(expected) }
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-algebra/operator/project/test_heading.rb
alf-core-0.14.0 spec/unit/alf-algebra/operator/project/test_heading.rb
alf-core-0.13.1 spec/unit/alf-algebra/operator/project/test_heading.rb
alf-core-0.13.0 spec/unit/alf-algebra/operator/project/test_heading.rb