Module: Selective::Ruby::RSpec::Monkeypatches::Example

Defined in:
lib/selective/ruby/rspec/monkeypatches.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



119
120
121
122
# File 'lib/selective/ruby/rspec/monkeypatches.rb', line 119

def initialize(*args)
  super
  ::RSpec.world.example_map[id] = self
end

#run(*args) ⇒ Object



124
125
126
127
# File 'lib/selective/ruby/rspec/monkeypatches.rb', line 124

def run(*args)
  @exception = nil
  super
end