Module: AppMap::RSpec::FeatureAnnotations
- Included in:
- ScopeExample, ScopeExampleGroup
- Defined in:
- lib/appmap/rspec.rb
Instance Method Summary collapse
Instance Method Details
#annotations ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/appmap/rspec.rb', line 41 def annotations .tap do |md| description_args_hashes.each do |h| md.merge! h end end end |
#feature ⇒ Object
18 19 20 21 22 |
# File 'lib/appmap/rspec.rb', line 18 def feature return nil unless annotations annotations[:feature] end |
#feature_group ⇒ Object
35 36 37 38 39 |
# File 'lib/appmap/rspec.rb', line 35 def feature_group return nil unless annotations annotations[:feature_group] end |
#labels ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/appmap/rspec.rb', line 24 def labels labels = [:appmap] if labels.is_a?(Array) labels elsif labels.is_a?(String) || labels.is_a?(Symbol) [ labels ] else [] end end |