Sha256: 03ba87bc1f601d39ace1363a03c7c7018b247ee991f492ad39b26995c28d4b40

Contents?: true

Size: 349 Bytes

Versions: 20

Compression:

Stored size: 349 Bytes

Contents

require 'spec_helper'

module Gherkin
  module Parser
    describe Parser do
      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(/Parse error at/)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
gherkin-2.2.1 spec/gherkin/parser/parser_spec.rb
gherkin-2.2.1-i386-mswin32 spec/gherkin/parser/parser_spec.rb
gherkin-2.2.1-i386-mingw32 spec/gherkin/parser/parser_spec.rb
gherkin-2.2.1-universal-dotnet spec/gherkin/parser/parser_spec.rb
gherkin-2.2.1-java spec/gherkin/parser/parser_spec.rb
gherkin-2.2.0 spec/gherkin/parser/parser_spec.rb
gherkin-2.2.0-i386-mswin32 spec/gherkin/parser/parser_spec.rb
gherkin-2.2.0-i386-mingw32 spec/gherkin/parser/parser_spec.rb
gherkin-2.2.0-universal-dotnet spec/gherkin/parser/parser_spec.rb
gherkin-2.2.0-java spec/gherkin/parser/parser_spec.rb
gherkin-2.1.5 spec/gherkin/parser/parser_spec.rb
gherkin-2.1.5-i386-mswin32 spec/gherkin/parser/parser_spec.rb
gherkin-2.1.5-i386-mingw32 spec/gherkin/parser/parser_spec.rb
gherkin-2.1.5-universal-dotnet spec/gherkin/parser/parser_spec.rb
gherkin-2.1.5-java spec/gherkin/parser/parser_spec.rb
gherkin-2.1.4 spec/gherkin/parser/parser_spec.rb
gherkin-2.1.4-i386-mswin32 spec/gherkin/parser/parser_spec.rb
gherkin-2.1.4-i386-mingw32 spec/gherkin/parser/parser_spec.rb
gherkin-2.1.4-universal-dotnet spec/gherkin/parser/parser_spec.rb
gherkin-2.1.4-java spec/gherkin/parser/parser_spec.rb