Sha256: d01bca8128eb9096a663710ef7ceccf6708c2e5697d242fb7576d16dacfe08c7

Contents?: true

Size: 704 Bytes

Versions: 66

Compression:

Stored size: 704 Bytes

Contents

#encoding: utf-8
if !defined?(JRUBY_VERSION) && !(defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby") && ENV['GHERKIN_JS']
require 'spec_helper'
require 'gherkin/js_lexer'

module Gherkin
  module Lexer
    describe "Javascript Lexer" do
      before do
        @listener = Gherkin::SexpRecorder.new
        @lexer = Gherkin::JsLexer['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"
      # TODO - make this pass!
      # it_should_behave_like "parsing windows files"
    end
  end
end
end

Version data entries

66 entries across 65 versions & 5 rubygems

Version Path
gherkin-2.9.3-java spec/gherkin/js_lexer_spec.rb
gherkin-2.9.2 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.2-x86-mswin32 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.2-x86-mingw32 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.2-java spec/gherkin/js_lexer_spec.rb
gherkin-2.9.1 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.1-x86-mswin32 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.1-x86-mingw32 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.1-java spec/gherkin/js_lexer_spec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/gherkin-2.9.0/spec/gherkin/js_lexer_spec.rb
gherkin-2.9.0 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.0-x86-mswin32 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.0-x86-mingw32 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.0-java spec/gherkin/js_lexer_spec.rb
gherkin-2.8.0 spec/gherkin/js_lexer_spec.rb
gherkin-2.8.0-x86-mswin32 spec/gherkin/js_lexer_spec.rb
gherkin-2.8.0-x86-mingw32 spec/gherkin/js_lexer_spec.rb
gherkin-2.8.0-java spec/gherkin/js_lexer_spec.rb
gherkin-2.7.7 spec/gherkin/js_lexer_spec.rb
gherkin-2.7.7-x86-mswin32 spec/gherkin/js_lexer_spec.rb