Sha256: 600ecdb81543072441c4ddb1c8bce9e8fca2ea816072dd52cdf6a83312e1086e

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

  it { should_not equal(object) }

  it { should be_kind_of(described_class) }

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