Sha256: 06d0026b3827ca89816b4acc5d286c23569ae2ca5da286b39fd09494f7439f8a
Contents?: true
Size: 807 Bytes
Versions: 8
Compression:
Stored size: 807 Bytes
Contents
#encoding: utf-8 require 'spec_helper' module Gherkin module Lexer begin require 'gherkin/lexer/en' rescue LoadError # For Java/JRuby we might not have the generated ruby lexer, which # won't be used anyway. Just define a stub. class En native_impl('gherkin') end end describe "Native Lexer" do before do @listener = Gherkin::SexpRecorder.new @lexer = Gherkin::Lexer::En.new(@listener) end it_should_behave_like "a Gherkin lexer" it_should_behave_like "a Gherkin lexer lexing tags" it_should_behave_like "a Gherkin lexer lexing doc_strings" it_should_behave_like "a Gherkin lexer lexing rows" it_should_behave_like "parsing windows files" unless ENV['GHERKIN_JS_NATIVE'] end end end
Version data entries
8 entries across 8 versions & 1 rubygems