Sha256: 631e8b734321c822fc6ac9e906f2efa440f9278b20632ab94cbed335359733b1
Contents?: true
Size: 807 Bytes
Versions: 15
Compression:
Stored size: 807 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, "test.feature", 0) 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
15 entries across 15 versions & 1 rubygems