Sha256: e0113495b1761b8fe66b85d50d588b79a21290d95d2f4fac33a02cdc57d60624

Contents?: true

Size: 439 Bytes

Versions: 7

Compression:

Stored size: 439 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(double('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

7 entries across 5 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/gherkin-2.12.2/spec/gherkin/parser/parser_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/gherkin-2.12.2/spec/gherkin/parser/parser_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/gherkin-2.12.2/spec/gherkin/parser/parser_spec.rb
gherkin-2.12.2 spec/gherkin/parser/parser_spec.rb
gherkin-2.12.2-x86-mswin32 spec/gherkin/parser/parser_spec.rb
gherkin-2.12.2-x86-mingw32 spec/gherkin/parser/parser_spec.rb
gherkin-2.12.2-java spec/gherkin/parser/parser_spec.rb