Displaying 3 results from an estimated 3 matches for "m000082".
Did you mean:
000082
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
...where I''ve needed to test the
> > ordering of calls on a mock explicitly, but flex mock provides a
> > grouping mechanism.
> >
> > For the corollary in FlexMock, check out #ordered
> > http://onestepback.org/software/flexmock/classes/FlexMock/Expectation.html#M000082
> >
> > Don''t take me too seriously, but I think mocha could trump flexmock''s
> > with something like:
> >
> > mock_user = mock(''User'') do
> > initially.expects(:first_name).returns(''Duncan'')
> > the...
2006 Feb 07
11
breaking down a list view
I''m trying to figure out how to change the order of a list view and it''s
obvious to me that I don''t understand what I get from a simple scaffold
to know enough to alter it.
If someone would be so kind to tell me what this means ...
def list
@placment_pages, @placements = paginate :placements, :per_page => 10
end
@placement_pages, # I am guessing that this