Sha256: f2d2f4cb60a55fdc3e7de3e0823488b70c0d20bc72c2d14df86ff5077e327971

Contents?: true

Size: 668 Bytes

Versions: 4

Compression:

Stored size: 668 Bytes

Contents

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

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

      subject{ op.heading }

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

        it { should eq(expected) }
      end

      context '--allbut' do
        let(:op){ 
          a_lispy.clip(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/clip/test_heading.rb
alf-core-0.14.0 spec/unit/alf-algebra/operator/clip/test_heading.rb
alf-core-0.13.1 spec/unit/alf-algebra/operator/clip/test_heading.rb
alf-core-0.13.0 spec/unit/alf-algebra/operator/clip/test_heading.rb