Class: TuneMyGc::Spies::Rspec
- Inherits:
-
Base
- Object
- Base
- TuneMyGc::Spies::Rspec
show all
- Defined in:
- lib/tunemygc/spies/rspec.rb
Instance Method Summary
collapse
Methods inherited from Base
#check_uninstall, #initialize
Instance Method Details
#disabled_hooks_module ⇒ Object
31
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/tunemygc/spies/rspec.rb', line 31
def disabled_hooks_module
Module.new do
private
def tunemygc_before_setup
end
def tunemygc_after_teardown
end
end
end
|
#install ⇒ Object
12
13
14
15
|
# File 'lib/tunemygc/spies/rspec.rb', line 12
def install
RSpec::Core.__send__(:include, hooks_module)
TuneMyGc.log "hooked: rspec"
end
|
#uninstall ⇒ Object
17
18
19
20
|
# File 'lib/tunemygc/spies/rspec.rb', line 17
def uninstall
RSpec::Core.__send__(:include, disabled_hooks_module)
TuneMyGc.log "uninstalled rspec spy"
end
|