method
print_step
1.1.4 -
Show latest stable
- Class:
Spec::Runner::Formatter::Story::HtmlFormatter
print_step(klass, type, description, *args)public
No documentation available.
# File lib/spec/runner/formatter/story/html_formatter.rb, line 122
def print_step(klass, type, description, *args)
spans = args.map { |arg| "<span class=\"param\">#{arg}</span>" }
desc_string = description.step_name
arg_regexp = description.arg_regexp
i = -1
inner = type.to_s.capitalize + ' ' + desc_string.gsub(arg_regexp) { |param| spans[i+=1] }
@output.puts " <li class=\"#{klass}\">#{inner}</li>"
end