Sha256: 89821f1afc76f365d8e1dc9295d02644da8d88ecc608e0a340df05c66b139616
Contents?: true
Size: 774 Bytes
Versions: 163
Compression:
Stored size: 774 Bytes
Contents
Given /^a "(ruby|native)" "([^\"]*)" parser$/ do |ruby_or_native, parser_name| @parser = Gherkin::Parser::Parser.new(@formatter, false, parser_name, ruby_or_native=="ruby") end Given "the following text is parsed:" do |text| @parser.parse(text, "test.feature", 0) end Then "there should be no parse errors" do @formatter.errors.should == [] end Then /^there should be a parse error on (line \d+)$/ do |line| @formatter.line(line).should include(:syntax_error, line) end Then /^there should be parse errors on (lines .*)$/ do |lines| lines.each do |line| step "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
163 entries across 158 versions & 9 rubygems