[Rails] functional test problems
Scott Barron
scott at elitists.net
Thu Nov 11 12:33:08 GMT 2004
On Thu, Nov 11, 2004 at 01:28:21PM +0100, Johan Sörensen wrote:
> On Thu, 11 Nov 2004 07:19:11 -0500, Scott Barron <scott at elitists.net> wrote:
> > Make that:
> >
> > process :checkauth, 'login' => {'username' => 'foo', 'password' => 'bar'}
>
> Excellent! Works like a charm. Thanks.
>
>
> On a (not quite) similar note, what was that thing I needed to change
> due to some bug in ./script/new_model that failed to plurize
> something?
To fix the script, I think it's around line 43 (for tarball 0.8.0
rails), change:
table_name = ARGV.shift || file_name
to
table_name = ARGV.shift || Inflector.pluralize(file_name)
To fix an existing model, move its fixtures directory and the
create_fixtures line of its unit tests.
-Scott
More information about the Rails
mailing list