Colin Law wrote in post #964874: > On 29 November 2010 17:48, Steve Mills <[email protected]> wrote: >> [...] >> Following the book, and creating my own project, I don't encounter this >> problem. But I do encounter a serious problem on "test functionals" >> where the db tables are created, seeded, and then promptly dropped prior >> to the first test running so all the tests fail. The application itself >> works fine. > > Are you using fixtures? I think most now would advise against > fixtures, suggesting factories instead. See > http://railscasts.com/episodes/158-factories-not-fixtures for example. > So if you can't get fixtures to work (or even if you can) then forget > them and move to something better.
Agreed. Also forget about functional tests and use Cucumber instead. In fact, forget about Test::Unit and go for RSpec. The Rails core team made a wonderfully testable framework, but provided poor testing tools to actually do that testing. > > Colin Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

