Class: Cucumber::Formatter::Json::Builder
- Inherits:
-
Object
- Object
- Cucumber::Formatter::Json::Builder
- Defined in:
- lib/cukerail/json.rb
Instance Method Summary collapse
Instance Method Details
#examples_table(examples_table) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/cukerail/json.rb', line 5 def examples_table(examples_table) # puts 'in examples table' # We want the row data to be used in making the full scenario name if ENV['OLD_STYLE_OUTLINE_NAMES'] @example_id = @row.send(:data).map{|k,v| "#{k}='#{v}'"}.join(", ") else @example_id = @row.send(:data).map{|k,v| "#{k}=#{v}"}.join(", ") end @examples_table_tags = (examples_table.) unless examples_table..empty? @examples_table_comments = ::Cucumber::Formatter.create_comments_array(examples_table.comments) unless examples_table.comments.empty? end |