Module: Selective::Ruby::RSpec::Monkeypatches::World
- Defined in:
- lib/selective/ruby/rspec/monkeypatches.rb
Instance Attribute Summary collapse
-
#example_map ⇒ Object
Returns the value of attribute example_map.
Instance Method Summary collapse
Instance Attribute Details
#example_map ⇒ Object
Returns the value of attribute example_map.
96 97 98 |
# File 'lib/selective/ruby/rspec/monkeypatches.rb', line 96 def example_map @example_map end |
Instance Method Details
#initialize(*args) ⇒ Object
98 99 100 101 |
# File 'lib/selective/ruby/rspec/monkeypatches.rb', line 98 def initialize(*args) super @example_map = {} end |
#prepare_example_filtering ⇒ Object
103 104 105 106 107 108 109 110 111 |
# File 'lib/selective/ruby/rspec/monkeypatches.rb', line 103 def prepare_example_filtering @filtered_examples = Hash.new do |hash, group| hash[group] = if ::RSpec.configuration.dry_run? filter_manager.prune(group.examples) else [] end end end |