Sha256: b32316ed8618b562fe91a16ab8875f24f9443a488162abbb753724e69f4894f8

Contents?: true

Size: 1012 Bytes

Versions: 27

Compression:

Stored size: 1012 Bytes

Contents

require 'spec_helper'

module Cucumber
  describe Runtime::ForProgrammingLanguages do

    let(:user_interface)  { double('user interface') }
    subject               { Runtime::SupportCode.new(user_interface,{}) }
    let(:runtime_facade)  { Runtime::ForProgrammingLanguages.new(subject, user_interface) }

    it 'should produce Ast::DocString by #doc_string with default content-type' do
      str = runtime_facade.doc_string('DOC')
      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 = runtime_facade.doc_string('DOC','ruby')
      str.should be_kind_of(Ast::DocString)
      str.content_type.should eq('ruby')
    end

    it 'should produce Ast::Table by #table' do
      runtime_facade.table(%{
      | account | description | amount |
      | INT-100 | Taxi        | 114    |
      | CUC-101 | Peeler      | 22     |
      }).should be_kind_of(Ast::Table)
    end

  end
end

Version data entries

27 entries across 25 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/spec/cucumber/runtime/for_programming_languages_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/spec/cucumber/runtime/for_programming_languages_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.20 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.19 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.18 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.17 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.16 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.15 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.14 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.13 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.12 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.11 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.10 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.9 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.8 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.7 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.6 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.5 spec/cucumber/runtime/for_programming_languages_spec.rb
cucumber-1.3.4 spec/cucumber/runtime/for_programming_languages_spec.rb