Sha256: ee2dc492d8b39c2519aec744e44c5a3d59534fc5e2ce19b6839371fecd906c91

Contents?: true

Size: 412 Bytes

Versions: 4

Compression:

Stored size: 412 Bytes

Contents

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

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

      subject{ op.heading }

      let(:expected){
        Heading[:id => Integer, :foo => String]
      }

      it { should eq(expected) }

    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/rename/test_heading.rb
alf-core-0.14.0 spec/unit/alf-algebra/operator/rename/test_heading.rb
alf-core-0.13.1 spec/unit/alf-algebra/operator/rename/test_heading.rb
alf-core-0.13.0 spec/unit/alf-algebra/operator/rename/test_heading.rb