Sha256: 13979d506e9097e12c16400e3461e17bf5662869e376704571afb3f17d9fcda4

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 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 be(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.1 spec/unit/axiom/relation/operation/order/direction_set/project_spec.rb