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.11.0 spec/gherkin/js_lexer_spec.rb
gherkin-2.11.0-x86-mswin32 spec/gherkin/js_lexer_spec.rb
gherkin-2.11.0-x86-mingw32 spec/gherkin/js_lexer_spec.rb
gherkin-2.11.0-java spec/gherkin/js_lexer_spec.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/js_lexer_spec.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/gherkin-2.9.0/spec/gherkin/js_lexer_spec.rb
ftl-0.2.0 vendor/bundle/gems/gherkin-2.10.0/spec/gherkin/js_lexer_spec.rb
gherkin-2.10.0 spec/gherkin/js_lexer_spec.rb
gherkin-2.10.0-x86-mswin32 spec/gherkin/js_lexer_spec.rb
gherkin-2.10.0-x86-mingw32 spec/gherkin/js_lexer_spec.rb
gherkin-2.10.0-java spec/gherkin/js_lexer_spec.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/js_lexer_spec.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/js_lexer_spec.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/js_lexer_spec.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/js_lexer_spec.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/gherkin-2.9.3/spec/gherkin/js_lexer_spec.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/gherkin-2.9.0/spec/gherkin/js_lexer_spec.rb
gherkin-2.9.3 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.3-x86-mswin32 spec/gherkin/js_lexer_spec.rb
gherkin-2.9.3-x86-mingw32 spec/gherkin/js_lexer_spec.rb