Sha256: bb44ecf064634f35739da9edec9b74665232909d44a543579f4ae7b1095b5e68

Contents?: true

Size: 750 Bytes

Versions: 6

Compression:

Stored size: 750 Bytes

Contents

require 'spec_helper'
require 'alf/doc/to_markdown'
module Alf
  module Doc
    describe ToMarkdown do

      it 'works on an operator' do
        op = Doc.query{ restrict(operators, name: "project") }.tuple_extract
        lambda{
          ToMarkdown.new.operator(op)
        }.should_not raise_error
      end

      it 'works on a predicate' do
        op = Doc.query{ restrict(predicates, name: "eq") }.tuple_extract
        lambda{
          ToMarkdown.new.predicate(op)
        }.should_not raise_error
      end

      it 'works on a aggregator' do
        op = Doc.query{ restrict(aggregators, name: "sum") }.tuple_extract
        lambda{
          ToMarkdown.new.aggregator(op)
        }.should_not raise_error
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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