cucumber: fix issue where an undefined step would cause an exception
This commit is contained in:
parent
c4047c37b2
commit
c273d91df1
|
@ -150,14 +150,14 @@ end
|
||||||
When /^I run jekyll(.*)$/ do |args|
|
When /^I run jekyll(.*)$/ do |args|
|
||||||
status = run_jekyll(args)
|
status = run_jekyll(args)
|
||||||
if args.include?("--verbose") || ENV['DEBUG']
|
if args.include?("--verbose") || ENV['DEBUG']
|
||||||
puts jekyll_run_output
|
STDERR.puts "\n#{jekyll_run_output}\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
When /^I run bundle(.*)$/ do |args|
|
When /^I run bundle(.*)$/ do |args|
|
||||||
status = run_bundle(args)
|
status = run_bundle(args)
|
||||||
if args.include?("--verbose") || ENV['DEBUG']
|
if args.include?("--verbose") || ENV['DEBUG']
|
||||||
puts jekyll_run_output
|
STDERR.puts "\n#{jekyll_run_output}\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ module Features
|
||||||
@indent = 0
|
@indent = 0
|
||||||
@prefixes = options[:prefixes] || {}
|
@prefixes = options[:prefixes] || {}
|
||||||
@delayed_messages = []
|
@delayed_messages = []
|
||||||
|
@snippets_input = []
|
||||||
end
|
end
|
||||||
|
|
||||||
def before_features(features)
|
def before_features(features)
|
||||||
|
@ -115,6 +116,10 @@ module Features
|
||||||
@io.flush
|
@io.flush
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def after_test_step(test_step, result)
|
||||||
|
collect_snippet_data(test_step, result)
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def print_feature_element_name(keyword, name, file_colon_line, source_indent)
|
def print_feature_element_name(keyword, name, file_colon_line, source_indent)
|
||||||
|
|
Loading…
Reference in New Issue