Sha256: f71941f25a46c259e4dbe15641c188a5276b452a2fe8dbc01b4087e10e3c57b9

Contents?: true

Size: 418 Bytes

Versions: 4

Compression:

Stored size: 418 Bytes

Contents

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

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

      subject{ op.keys }

      let(:expected){
        Keys[ [:id], [: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_keys.rb
alf-core-0.14.0 spec/unit/alf-algebra/operator/rename/test_keys.rb
alf-core-0.13.1 spec/unit/alf-algebra/operator/rename/test_keys.rb
alf-core-0.13.0 spec/unit/alf-algebra/operator/rename/test_keys.rb