Sha256: 9dedcf546961802db97ed81296ed7a11bf491982ef981a9d39485b4d5a955302

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

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

    it { should be(false) }
  end

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

    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/header/empty_predicate_spec.rb
axiom-0.1.1 spec/unit/axiom/relation/header/empty_predicate_spec.rb