On Jun 09, 2010, at 11:46 pm, doug livesey wrote:
> > I'm interested to know, though, why do you think the mock service approach 
> > wouldn't really apply to this?
> Due to the fact that I'm needing to stub specific calls for specific 
> responses, and would need therefore to seed the mock service & do all sorts 
> of configuration through some sort of interface. I'm getting dangerously 
> close to putting expectations into a stack test, aren't I? I could take a 
> step back and use WebMock, but the service (unavoidably) accesses & updates 
> records in batches of 200, and it's a proper PITA.

What do you mean by "putting expectations into a stack test"?


> > ... that would be implementing your own mocking expectation system, right?
> Yup, and not only a duplication of effort, but using expectations in a cuke 
> is a bit of a no-no, so I've read.

I assume you're talking about the same thing.  What did you read and where?  
I'd like to have a look over it to see what the argument is.


> > If I understand right (which is by no means certain), then you're exposed 
> > to broad interface changes.  In these situations, I like to check the 
> > assumptions in my spec files, as some will be stronger/less brittle than 
> > others.
> That would be things like the types & values returned from mocks and stubs, 
> right? Currently, this is the other main thing that Cucumber does for me (the 
> first is help make me a designer & developer, rather than just a coder!), 
> which is why I really can't let the not-fully-tested state of affairs last 
> too long. Is that what you're talking about, or are you suggesting another 
> method could be used there?

I think I may have mistunderstood your original point, so ignore this for now :)


Ash


-- 
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran

-- 
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en.

Reply via email to