cucumber: fix issue where an undefined step would cause an exception

This commit is contained in:
Parker Moore 2016-01-04 12:08:02 -08:00
parent c4047c37b2
commit c273d91df1
2 changed files with 7 additions and 2 deletions

View File

@ -150,14 +150,14 @@ end
When /^I run jekyll(.*)$/ do |args|
status = run_jekyll(args)
if args.include?("--verbose") || ENV['DEBUG']
puts jekyll_run_output
STDERR.puts "\n#{jekyll_run_output}\n"
end
end
When /^I run bundle(.*)$/ do |args|
status = run_bundle(args)
if args.include?("--verbose") || ENV['DEBUG']
puts jekyll_run_output
STDERR.puts "\n#{jekyll_run_output}\n"
end
end

View File

@ -25,6 +25,7 @@ module Features
@indent = 0
@prefixes = options[:prefixes] || {}
@delayed_messages = []
@snippets_input = []
end
def before_features(features)
@ -115,6 +116,10 @@ module Features
@io.flush
end
def after_test_step(test_step, result)
collect_snippet_data(test_step, result)
end
private
def print_feature_element_name(keyword, name, file_colon_line, source_indent)