Sha256: 8e3a94199842e81d9604c32e6e126be6d096b7d391b9659134f332dbff79a7b7
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
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 'produces Ast::DocString by #doc_string with default content-type' do str = runtime_facade.doc_string('DOC') expect(str).to be_kind_of(Core::Ast::DocString) expect(str.content_type).to eq('') end it 'produces Ast::DocString by #doc_string with ruby content-type' do str = runtime_facade.doc_string('DOC','ruby') expect(str).to be_kind_of(Core::Ast::DocString) expect(str.content_type).to eq('ruby') end it 'produces Ast::Table by #table' do expect(runtime_facade.table(%{ | account | description | amount | | INT-100 | Taxi | 114 | | CUC-101 | Peeler | 22 | })).to be_kind_of(Core::Ast::DataTable) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-2.0.0.beta.2 | spec/cucumber/runtime/for_programming_languages_spec.rb |
cucumber-2.0.0.beta.1 | spec/cucumber/runtime/for_programming_languages_spec.rb |