Update connect/disconnect action states.
[kaya.git] / lib / helpers / stubs.rb
blob5e70d412df5a17a4be8804a4727b8b1a0171c860
1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 class GeneralMock
9   attr_reader :calls
10   
11   def initialize
12     @calls = []
13   end
14   
15   def method_missing(method, *args)
16     @calls << [method, args]
17   end
18 end