Sha256: e8303cedf9832ce578c13d7e2a0fc5f63d96304aaed83ff174d5fa64cfc54c46

Contents?: true

Size: 720 Bytes

Versions: 6

Compression:

Stored size: 720 Bytes

Contents

require 'spec_helper'
module Alf
  describe Doc do

    it "should have a version number" do
      Doc.const_defined?(:VERSION).should be_true
    end

    it 'has valid .yml files' do
      Doc.all.should be_a(Relation)
    end

    it 'has valid predicates' do
      predicates = Doc.query(:predicates)
      predicates.should be_a(Relation)
      predicates.should_not be_empty
    end

    it 'has valid operators' do
      operators = Doc.query(:operators)
      operators.should be_a(Relation)
      operators.should_not be_empty
    end

    it 'has valid aggregators' do
      aggregators = Doc.query(:aggregators)
      aggregators.should be_a(Relation)
      aggregators.should_not be_empty
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alf-doc-0.16.4 spec/test_doc.rb
alf-doc-0.16.3 spec/test_doc.rb
alf-doc-0.16.2 spec/test_doc.rb
alf-doc-0.16.1 spec/test_doc.rb
alf-doc-0.16.0 spec/test_doc.rb
alf-doc-0.15.0 spec/test_doc.rb