search for: call_private_method

Displaying 1 result from an estimated 1 matches for "call_private_method".

2006 Dec 21
3
Speccing private class methods
...ally puzzles me - why is a private class method not accessible via send?) Another problem is that stub! makes public methods, which changes the behaviour of a class if you stub a private method. Ashley require ''spec'' class MyClass class << self def call_private_method private_method.upcase end private def private_method "this is private" end end end context "MyClass" do specify "(1) call_private_method should upcase the private_method" do MyClass.call_pri...