fixtures are hard to maintain and impractical comprared to factories,
factories are pluging/gems that create object dinamicly  as needed so you
can do thing like this

i have 100 users

with that the factory will create on the fly 100 users and you can later
change that 100 to 1000 .

On Wed, Sep 15, 2010 at 1:22 PM, Robert Walker <li...@ruby-forum.com> wrote:

> Joshua Muheim wrote:
> > Thanks for your answer, Robert.
> >
> >> I'm not exactly sure what you mean by "web testing."
> >
> > I mean the integration tests, where one programs a browser to do some
> > stuff, e.g. "open website", "enter stuff into form", "press submit",
> > "assert pattern xy exists" etc.
>
> Cucumber has great integration with webrat and capybara for such
> testing.
>
> >> Here are the various levels of testing that Rails supports (Test::Unit):
> >>
> >> 1. Model (Unit tests)
> >> 2. Functional (Controller tests)
> >> 3. Integration (Controller + View tests)
> >
> >> FIXTURES ARE BAD!!!
> >
> > You mean that the theory behind fixtures is bad (use predefined test
> > data), or that the way Rails offers the use of fixtures is bad?
>
> I mean use factories instead of fixtures (as Rails defines the term
> "fixtures").
> --
> Posted via http://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-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to