Sha256: 5814adb72e7a07eee0e3658de3791c8af7655d99c98e50055ea8f14b5f04bd57

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 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 equal(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.0 spec/unit/axiom/relation/operation/order/direction_set/rename_spec.rb