Hi Matt,
You're a star! That was exactly it. I guess I should start pair programming :)
Thanks
2009/5/12 Matt Wynne :
>
> On 12 May 2009, at 17:59, Andy Henson wrote:
>
>> Job.find_by_jobno(
>
> needs to be stubbed all the time to return your job, or at least in the
> examples that are failing.
On 12 May 2009, at 17:59, Andy Henson wrote:
Job.find_by_jobno(
needs to be stubbed all the time to return your job, or at least in
the examples that are failing.
Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com
___
rspec-users mail
Hi All,
I'm trying to spec out a Rails controller and I'm coming up with a bit
of a problem. I'm pretty sure it's something fairly simple but I can
no longer see the wood for the trees.
I have a Jobs controller that looks like this (this is just the action
with the problem for brevity)
class Job