Sha256: 0a2dd412384cd41b3010f3acb90f3f3f176cfb2d6fb9ff9d6e0efc015511cfac

Contents?: true

Size: 410 Bytes

Versions: 3

Compression:

Stored size: 410 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Operation::Order::DirectionSet, '#empty?' do
  subject { object.empty? }

  let(:object) { described_class.new(attributes) }

  context 'with an empty set' do
    let(:attributes) { [] }

    it { should be(true) }
  end

  context 'with directions' do
    let(:attributes) { [ Attribute::Integer.new(:id) ] }

    it { should be(false) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
veritas-0.0.6 spec/unit/veritas/relation/operation/order/direction_set/empty_spec.rb
veritas-0.0.5 spec/unit/veritas/relation/operation/order/direction_set/empty_spec.rb
veritas-0.0.4 spec/unit/veritas/relation/operation/order/direction_set/empty_spec.rb