Sha256: e5893df0ce0f48ee546b3cf154c30c8bc6cf24037bd18198156dd2528655bfb9

Contents?: true

Size: 788 Bytes

Versions: 109

Compression:

Stored size: 788 Bytes

Contents

Given /^a "([^\"]*)" "([^\"]*)" parser$/ do |ruby_or_native, parser_name|
  parser = Gherkin::Parser::Parser.new(@listener, false, parser_name)
  @lexer = Gherkin::I18nLexer.new(parser, ruby_or_native == "ruby")
end

Given "the following text is parsed:" do |text|
  @lexer.scan(text)
end

Then "there should be no parse errors" do
  @listener.errors.should == []
end

Then /^there should be a parse error on (line \d+)$/ do |line|
  @listener.line(line).should include(:syntax_error, line)
end

Then /^there should be parse errors on (lines .*)$/ do |lines|
  lines.each do |line|
    Then "there should be a parse error on line #{line}"
  end
end

Transform /^line \d+$/ do |step_arg|
  tr_line_number(step_arg)
end

Transform /^lines .*$/ do |step_arg|
  tr_line_numbers(step_arg)
end

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
gherkin-1.0.30 features/step_definitions/gherkin_steps.rb
gherkin-1.0.30-i386-mswin32 features/step_definitions/gherkin_steps.rb
gherkin-1.0.30-i386-mingw32 features/step_definitions/gherkin_steps.rb
gherkin-1.0.30-universal-dotnet features/step_definitions/gherkin_steps.rb
gherkin-1.0.30-java features/step_definitions/gherkin_steps.rb
gherkin-1.0.29 features/step_definitions/gherkin_steps.rb
gherkin-1.0.29-i386-mswin32 features/step_definitions/gherkin_steps.rb
gherkin-1.0.29-i386-mingw32 features/step_definitions/gherkin_steps.rb
gherkin-1.0.29-java features/step_definitions/gherkin_steps.rb
gherkin-1.0.28 features/step_definitions/gherkin_steps.rb
gherkin-1.0.28-i386-mswin32 features/step_definitions/gherkin_steps.rb
gherkin-1.0.28-i386-mingw32 features/step_definitions/gherkin_steps.rb
gherkin-1.0.28-java features/step_definitions/gherkin_steps.rb
gherkin-1.0.27 features/step_definitions/gherkin_steps.rb
gherkin-1.0.27-i386-mswin32 features/step_definitions/gherkin_steps.rb
gherkin-1.0.27-i386-mingw32 features/step_definitions/gherkin_steps.rb
gherkin-1.0.27-java features/step_definitions/gherkin_steps.rb
gherkin-1.0.26 features/step_definitions/gherkin_steps.rb
gherkin-1.0.26-i386-mswin32 features/step_definitions/gherkin_steps.rb
gherkin-1.0.26-i386-mingw32 features/step_definitions/gherkin_steps.rb