Sha256: fe3f452cfa69a22b8371d486094ddd3033e7a0f91e6d9bd7c5de79b12401a28a

Contents?: true

Size: 321 Bytes

Versions: 4

Compression:

Stored size: 321 Bytes

Contents

require 'spec_helper'
module Alf
  describe Relvar, 'empty?' do
    include Relvar

    subject{ empty? }

    context 'on an empty relvar' do
      let(:to_cog){ [] }

      it{ should be_true }
    end

    context 'on an non empty relvar' do
      let(:to_cog){ [ 1 ] }

      it{ should be_false }
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-relvar/shared/test_empty.rb
alf-core-0.14.0 spec/unit/alf-relvar/shared/test_empty.rb
alf-core-0.13.1 spec/unit/alf-relvar/shared/test_empty.rb
alf-core-0.13.0 spec/unit/alf-relvar/shared/test_empty.rb