Method: Cucumber::Formatter::Json::Builder#feature
- Defined in:
- lib/cucumber/formatter/json.rb
permalink #feature(feature, uri) ⇒ Object
[View source] [View on GitHub]
249 250 251 252 253 254 255 256 257 258 259 260 261 |
# File 'lib/cucumber/formatter/json.rb', line 249 def feature(feature, uri) @feature_hash = { id: create_id(feature.name), uri: uri, keyword: feature.keyword, name: feature.name, description: value_or_empty_string(feature.description), line: feature.location.line } return if feature..empty? @feature_hash[:tags] = (feature.) end |