Sha256: 91e4bb350596ae233ef88a6f60a16053b60a4e75a01ee775b6c14e14e17a066b

Contents?: true

Size: 606 Bytes

Versions: 1

Compression:

Stored size: 606 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.new([ attribute ])                        }

  it { should_not equal(object) }

  it { should be_kind_of(described_class) }

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.4 spec/unit/veritas/relation/operation/order/direction_set/rename_spec.rb