Sha256: 9faea2bfaba4ef79f1af3d263ba96071312afdb29997c7887ae529643feccbca

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

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

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

      subject{ op.complete_renaming }

      let(:expected){
        Renaming[:id => :id, :name => :foo]
      }

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