Sha256: 4ae56d73730e8feb2a5d5f695a7ab088421591d1f42b9697cf74eb8ab421ce90

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:header)     { Relation::Header.coerce([ [ :id, Integer ], [ :name, String ] ]) }
  let(:attributes) { [ header[:id] ]                                                  }
  let(:object)     { described_class.coerce(header)                                   }

  it { should_not equal(object) }

  it { should be_instance_of(described_class) }

  it { should == [ header[: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/project_spec.rb