Method: Cucumber::Formatter::Json::Builder#background

Defined in:
lib/cucumber/formatter/json.rb

#background(background) ⇒ Object

[View source] [View on GitHub]

263
264
265
266
267
268
269
270
271
272
# File 'lib/cucumber/formatter/json.rb', line 263

def background(background)
  @background_hash = {
    keyword: background.keyword,
    name: background.name,
    description: value_or_empty_string(background.description),
    line: background.location.line,
    type: 'background',
    steps: []
  }
end