Sha256: 6407057f209fd502a9deeb8ccae6f16c46eda0c335283c883cbb49746374fb49

Contents?: true

Size: 437 Bytes

Versions: 16

Compression:

Stored size: 437 Bytes

Contents

require 'spec_helper'

module Gherkin
  module Parser
    describe Parser do
      unless defined?(JRUBY_VERSION)
        it "should raise when feature doesn't parse" do
          p = Parser.new(mock('formatter').as_null_object)
          lambda do
            p.parse("Feature: f\nFeature: f", __FILE__, __LINE__-1)
          end.should raise_error(Regexp.new("Parse error at #{__FILE__}:\\d+"))
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
gherkin-2.12.1 spec/gherkin/parser/parser_spec.rb
gherkin-2.12.1-x86-mswin32 spec/gherkin/parser/parser_spec.rb
gherkin-2.12.1-x86-mingw32 spec/gherkin/parser/parser_spec.rb
gherkin-2.12.1-java spec/gherkin/parser/parser_spec.rb
gherkin-2.12.0 spec/gherkin/parser/parser_spec.rb
gherkin-2.12.0-x86-mingw32 spec/gherkin/parser/parser_spec.rb
gherkin-2.12.0-x86-mswin32 spec/gherkin/parser/parser_spec.rb
gherkin-2.12.0-java spec/gherkin/parser/parser_spec.rb
gherkin-2.11.8 spec/gherkin/parser/parser_spec.rb
gherkin-2.11.8-x86-mswin32 spec/gherkin/parser/parser_spec.rb
gherkin-2.11.8-x86-mingw32 spec/gherkin/parser/parser_spec.rb
gherkin-2.11.8-java spec/gherkin/parser/parser_spec.rb
gherkin-2.11.7 spec/gherkin/parser/parser_spec.rb
gherkin-2.11.7-x86-mswin32 spec/gherkin/parser/parser_spec.rb
gherkin-2.11.7-x86-mingw32 spec/gherkin/parser/parser_spec.rb
gherkin-2.11.7-java spec/gherkin/parser/parser_spec.rb