Sha256: 9079fd135098f694868335583d38ddffebad89aa664f82765df7661b9a8cf502

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

require 'spec_helper'
module Gisele::Language
  describe ToGraph do

    it 'returns an array of Digraphs when called on a unit_def' do
      got = ToGraph.new.call(complete_ast)
      got.should be_a(Array)
      got.all?{|x| x.is_a? Yargi::Digraph}.should be_true
    end

    it 'returns a Digraph when called on a task_def' do
      got = ToGraph.new.call(complete_ast.last)
      got.should be_a(Yargi::Digraph)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gisele-0.4.0 spec/unit/language/processors/test_to_graph.rb
gisele-0.3.0 spec/unit/language/test_to_graph.rb