GTRON_ROOT is just the root of the gigantron app, it is set by the
generated code. I should probably not mix and match. The only
difference between the YAML generated in the test and that created by
the app_generator is that the app_generator one uses a relative url to
the db. I might change that later.
I've just been kind of hacking at it, trying to get things to work, so
things will definitely be cleaned up.
Thanks for the help and the feedback. I think I will now be able to
test my code more or less properly.
Ben Hughes
On Jun 13, 2:19 pm, "Nic Williams" <
drnicwilli...@gmail.com> wrote:
>
http://github.com/schleyfox/gigantron/tree/master/test/test_gigantron...
>
> Another option here is to create the YAML with the library. BTW, what is
> GTRON_ROOT vs APP_ROOT?
>
>
http://github.com/schleyfox/gigantron/tree/master/test/test_gigantron...
>
> The creation of Foo.new.save (btw - Foo.create(:title => t) is the same) -
> in a migration could go in a 2nd migration, thus not destroying the original
> migration which you are testing (I guess).
>
> Cool stuff.
>
>
>
> On Sat, Jun 14, 2008 at 12:29 AM, Ben Hughes <
schley...@gmail.com> wrote:
>
> > Ok, I have some form of testing working. It's a bit confusing trying
> > to keep all the paths absolute rather than relative in the generated
> > code, but I have it so things go. I'm just playing with it now, but
> > if I can extract patterns and the like, I will.
>
> > You can see the current state of the tests at
>
> >
http://github.com/schleyfox/gigantron/tree/master/test/test_gigantron...