1 require File.join(File.dirname(__FILE__), *%w[.. lib god])
9 class ExitCalledError < StandardError
14 raise ExitCalledError.new("exit called")
18 class FakeCondition < Condition
25 class FakeBehavior < Behavior
30 # This allows you to be a good OOP citizen and honor encapsulation, but
31 # still make calls to private methods (for testing) by doing
33 # obj.bypass.private_thingie(arg1, arg2)
35 # Which is easier on the eye than
37 # obj.send(:private_thingie, arg1, arg2)
41 instance_methods.each do |m|
42 undef_method m unless m =~ /^__/
49 def method_missing(sym, *args)
50 @ref.__send__(sym, *args)