Sha256: c650c6edcd60e65dcb2343326a4a126326f7055752cf3b925ef54f8fb58f4927

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Operation::Order::DirectionSet, '#rename' do
  subject { object.rename(aliases) }

  let(:attribute) { Attribute::Integer.new(:id)                            }
  let(:header)    { Relation::Header.new([attribute])                      }
  let(:aliases)   { Algebra::Rename::Aliases.coerce(header, id: :other_id) }
  let(:object)    { described_class.coerce([attribute])                    }

  it { should_not be(object) }

  it { should be_instance_of(described_class) }

  it { should == [Attribute::Integer.new(:other_id)] }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/relation/operation/order/direction_set/rename_spec.rb