Re: [rspec-users] Specifying mocks

2009-05-30 Thread Matt Wynne
On 29 May 2009, at 13:51, Tom Stuart wrote: Hi David, On 29 May 2009, at 12:10, David Chelimsky wrote: Have you read "Mock Roles, not Objects"? "its corresponding mock" suggests a single mock object for each real implementation. There's nothing stopping you from writing your own mock objects

Re: [rspec-users] Specifying mocks

2009-05-29 Thread Tom Stuart
Hi David, On 29 May 2009, at 12:10, David Chelimsky wrote: Have you read "Mock Roles, not Objects"? "its corresponding mock" suggests a single mock object for each real implementation. There's nothing stopping you from writing your own mock objects to play this role. IMO, this is not what a dyna

Re: [rspec-users] Specifying mocks

2009-05-29 Thread David Chelimsky
Hi Tom, On Fri, May 29, 2009 at 4:11 AM, Tom Stuart wrote: > Hi, > > One of the problems with mocks, as far as I can tell, is that they might go > out of sync with the real object they're mocking. Have you read "Mock Roles, not Objects"? http://mockobjects.com/files/mockrolesnotobjects.pdf > I

[rspec-users] Specifying mocks

2009-05-29 Thread Tom Stuart
Hi, One of the problems with mocks, as far as I can tell, is that they might go out of sync with the real object they're mocking. Is it possible and sane to detect this by running each spec against its corresponding mock? Does anyone already do this? For example: your Account object has a