Sha256: 414d1be5b9238643cbda2594f1b3a65917c19a292cee6c6a33c6d1c5c311bec9

Contents?: true

Size: 730 Bytes

Versions: 6

Compression:

Stored size: 730 Bytes

Contents

require 'spec_helper'
require 'alf/doc/to_html'
module Alf
  module Doc
    describe ToHtml do

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

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

      it 'works on a aggregator' do
        op = Doc.query{ restrict(aggregators, name: "sum") }.tuple_extract
        lambda{
          ToHtml.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_html.rb
alf-doc-0.16.3 spec/test_to_html.rb
alf-doc-0.16.2 spec/test_to_html.rb
alf-doc-0.16.1 spec/test_to_html.rb
alf-doc-0.16.0 spec/test_to_html.rb
alf-doc-0.15.0 spec/test_to_html.rb