Sha256: 47c657f9f5b7795d77ecfb4c04ce8c105075c10c8d93c7fdff14dd0f66cced50

Contents?: true

Size: 906 Bytes

Versions: 2

Compression:

Stored size: 906 Bytes

Contents

require 'spec_helper'

module Lucid
  describe Runtime::Facade do
    
    let(:interface) {double('interface')}
    subject { Runtime::Orchestrator.new(interface,{}) }
    let(:facade) { Runtime::Facade.new(subject, interface) }
    
    it 'should produce AST::Table by #table' do
      facade.table( %{
      | study   | phase |
      | test-01 | I     |
      | test-02 | II    |
      } ).should be_kind_of(AST::Table)
    end

    it 'should produce AST::DocString by #doc_string with default content-type' do
      str = facade.doc_string('TEST')
      str.should be_kind_of(AST::DocString)
      str.content_type.should eq('')
    end

    it 'should produce AST::DocString by #doc_string with ruby content-type' do
      str = facade.doc_string('TEST','ruby')
      str.should be_kind_of(AST::DocString)
      str.content_type.should eq('ruby')
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lucid-0.3.3 spec/lucid/facade_spec.rb
lucid-0.3.0 spec/lucid/facade_spec.rb