Module: MinispecMetadata::Tags
- Defined in:
- lib/minispec-metadata/tags.rb
Instance Method Summary collapse
- #runnable_method_matches_any_exclusive_tag?(runnable_method) ⇒ Boolean
- #runnable_method_matches_any_inclusive_tag?(runnable_method) ⇒ Boolean
- #runnable_methods ⇒ Object
Instance Method Details
#runnable_method_matches_any_exclusive_tag?(runnable_method) ⇒ Boolean
38 39 40 41 |
# File 'lib/minispec-metadata/tags.rb', line 38 def runnable_method_matches_any_exclusive_tag?(runnable_method) = MinispecMetadata..select(&:exclusive?) (runnable_method, ) end |
#runnable_method_matches_any_inclusive_tag?(runnable_method) ⇒ Boolean
33 34 35 36 |
# File 'lib/minispec-metadata/tags.rb', line 33 def runnable_method_matches_any_inclusive_tag?(runnable_method) = MinispecMetadata..select(&:inclusive?) (runnable_method, ) end |
#runnable_methods ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/minispec-metadata/tags.rb', line 19 def runnable_methods methods = super.dup if MinispecMetadata..select(&:inclusive?).any? methods.select! do |runnable_method| runnable_method_matches_any_inclusive_tag?(runnable_method) end end methods.reject do |runnable_method| runnable_method_matches_any_exclusive_tag?(runnable_method) end end |