search for: astrological_sign

Displaying 2 results from an estimated 2 matches for "astrological_sign".

2007 Nov 04
3
Returning the mock associated with an expectation.
I was reading through the FlexMock docs and noticed the expectation method .mock, which returns the original mock associated with an expectation. It looks really handy for writing nice all-in-one mocks like: mock_user = mock(''User'').expects(:first_name).returns(''Jonah'').mock So I started playing around with mocha and found I could actually already do this!
2008 Jan 02
2
Proxies
...39;User'') do > > initially.expects(:first_name).returns(''Duncan'') > > then.expects(:last_name).returns(''Beevers'') > > > > later.expects(:birthday).returns(''a gentleman never asks'') > > then.expects(:astrological_sign).returns(''Virgo'') > > > > stubs(:favorite_color).returns(''silver'') > > > > finally.expects(:goodnight!).returns(''same to you'') > > end > > > > Where the temporal prefixes initially, finally, then and...