public
Description: Provides a simple API for instrumenting Ruby method invocations
Homepage: http://fiveruns.com
Clone URL: git://github.com/fiveruns/instrument.git
Remove Instrument.clear since we don't support handler removal yet
bruce (author)
Fri May 16 15:44:16 -0700 2008
commit  b67e2b2badbd53663293d211a1596c4fb8d03caf
tree    45ff7e9e954c49736bf1112d96c2c19ff99d4a3f
parent  aed7909106423947751a08f21dce909e041b75d1
...
18
19
20
21
22
23
24
25
26
27
28
...
18
19
20
 
 
 
 
 
21
22
23
0
@@ -18,11 +18,6 @@ module Instrument
0
   def self.handlers
0
     @handlers ||= []
0
   end
0
-
0
- # Clear all handlers (use with caution)
0
- def self.clear
0
- handlers.clear
0
- end
0
 
0
   def self.add(*raw_targets, &handler)
0
     raw_targets.each do |raw_target|
...
48
49
50
51
 
52
53
54
...
48
49
50
 
51
52
53
54
0
@@ -48,7 +48,7 @@ class InstrumentFake < Test::Unit::TestCase
0
   context "Correct Behavior" do
0
   
0
     setup do
0
- Instrument.clear
0
+ Instrument.handlers.clear
0
     end
0
   
0
     should "executes hooks" do

Comments

    No one has commented yet.