Sha256: 506a113d471ff90b38f78da04ddaf8a8e106bdd143ba62c47287137020010b10

Contents?: true

Size: 557 Bytes

Versions: 1

Compression:

Stored size: 557 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Rename::Methods, '#rename' do
  subject { object.rename(aliases) }

  let(:described_class) { Relation                                                          }
  let(:attribute)       { Attribute::Integer.new(:id)                                       }
  let(:aliases)         { { :id => :other_id }                                              }
  let(:object)          { described_class.new([ attribute ], LazyEnumerable.new([ [ 1 ] ])) }

  it { should be_instance_of(Algebra::Rename) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/algebra/rename/methods/rename_spec.rb