[Rails] Re: functional tests - setup and teardown
On Jul 18, 2:40 pm, bingo bob <li...@ruby-forum.com> wrote:
> Hi all,
>
> functional test help please,
>
> http://pastie.org/1049300
>
> lines 5 to 8 simulate a login; all fine, but after line 56 I'd like to
> test the reverse that everything is blocked when the user is not logged
> in. So the question is how could I not do that setup routine after line
> 56, or is there a better way ?
You could just have two separate test files, or you might want to look
at shoulda
Fred
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home