------art_13501_32909149.1213306887523
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Thu, Jun 12, 2008 at 10:44 AM, Mark Thomas <ruby / thomaszone.com> wrote:

>
> Actually, what I meant is can
>  item.should be_valid
>
> be replaced with
>  item.should be valid
>
> but now that I think about it, rspec probably does some method_missing
> magic with the be_ prefix and wouldn't know to use #valid? with the
> question mark. Maybe the equivalent is
>
>  item.should be valid?
>
>
I don't think that would work.  But I think you could use the rather Yoda
like:

   item.valid?.should be

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

------art_13501_32909149.1213306887523--