On 26 Jan 2011, at 15:29, David Chelimsky wrote:
> On Jan 26, 2011, at 7:34 AM, Rob Aldred wrote:
>
>> I'm having a bit of trouble stubbing out a method on a model which has some
>> quite specific behaviour.
>> Basically I want to check the method returns something different after ive
>> calle
On Jan 26, 2011, at 7:34 AM, Rob Aldred wrote:
> I'm having a bit of trouble stubbing out a method on a model which has some
> quite specific behaviour.
> Basically I want to check the method returns something different after ive
> called update_attributes
>
> eg.
>
> @exam.draft? (returns tr
On 26 Jan 2011, at 13:34, Rob Aldred wrote:
> I'm having a bit of trouble stubbing out a method on a model which has some
> quite specific behaviour.
> Basically I want to check the method returns something different after ive
> called update_attributes
>
> eg.
>
> @exam.draft? (returns true)
I'm having a bit of trouble stubbing out a method on a model which has some
quite specific behaviour.
Basically I want to check the method returns something different after ive
called update_attributes
eg.
@exam.draft? (returns true)
@exam.update_attributes(params[:exam]) # sets draft to fals