Displaying 1 result from an estimated 1 matches for "named_greedy_stub".
2007 Jan 02
4
allow stubbing of previously defined methods such as "id"
...'', stub.__mock_name
end
+ def test_stub_should_respond_to_already_defined_method
+ stub = test_case.stub(:id=>"id")
+ assert_equal "id", stub.id
+ end
+
def test_should_create_greedy_stub_with_name
greedy_stub = test_case.stub_everything(''named_greedy_stub'')
assert_equal ''named_greedy_stub'', greedy_stub.__mock_name