method
print_step
![No documentation Importance_0](https://d2vfyqvduarcvs.cloudfront.net/images/importance_0.png?1349367920)
1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Runner::Formatter::Story::HtmlFormatter
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
print_step(klass, type, description, *args)
public
Hide source
# 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