[rspec-users] Stories - Use view matchers rather than assigns[].should?

Tim Haines tmhaines at gmail.com
Thu Apr 10 22:51:17 EDT 2008


I read about webrat and stories 30 mins ago -
http://www.benmabey.com/2008/02/04/rspec-plain-text-stories-webrat-chunky-bacon/-
good article.

Tim.

On 11/04/2008, Kamal Fariz <kamal.fariz at gmail.com> wrote:
>
> > When I create a user with foo="bar"
> >
> > is better because it doesn't expose the implementation.  Just the
> > model concept and any relevant attributes.
>
>
> I hide model details from Stories by using webrat and form field labels.
>
> When I create a user with Username: kamal, Password: test
> And click submit
>
> Seems safer that way as the views get tested at the same time.
>
>
> Regards,
>
> kamal
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080411/6602a5fe/attachment.html 


More information about the rspec-users mailing list