[Rails] functional test problems
Johan Sörensen
johans at gmail.com
Thu Nov 11 13:09:19 GMT 2004
On Thu, 11 Nov 2004 12:59:43 +0000, On The Rails <ontherails at gmail.com> wrote:
> Is there somewhere I can read up on this bug - ie. what is it, what
> problems does it cause?
Basicly, it seems like the new_model (in the 0.8 distrib) scripts
doesn't pluralize the subdirs in the ./test/fixtures/ directory,
aswell as the create_fixtures() methods in the unit tests.
As Scott says, the solution is simple; rename the the
./test/fixtures/* dirs to be plural and in the ./test/unit/*_test.rb
files change (with "user" being a model name):
@user = create_fixtures "user"
to:
@user = create_fixtures "users" (note 's' on the end)
there is no step three! (afaik atleast) ;)
More information about the Rails
mailing list