Sha256: c327829d5c0ce2e4524916f7352e8294b609b3510d72bf12a74c8e16e97082a5

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Keys, '#empty?' do
  subject { object.empty? }

  let(:object) { described_class.coerce(keys) }

  context 'with keys' do
    let(:keys) { [[[:id]]] }

    it { should be(false) }
  end

  context 'without keys' do
    let(:keys) { [] }

    it { should be(true) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/relation/keys/empty_predicate_spec.rb
axiom-0.1.1 spec/unit/axiom/relation/keys/empty_predicate_spec.rb