[Nitro] Og tests helper

George Moschovitis george.moschovitis at gmail.com
Mon Sep 3 05:00:54 EDT 2007


I use

$ export DB_PASSWORD=",sql51e'

you can also change the settings in og/test/helper.rb

-g.

On 9/3/07, Arne Brasseur <arne at arnebrasseur.net> wrote:
>
>  I'm trying to reproduce this here so I can better understand the issue.
> Is there a preferred way to tell the og tests about my MySql configuration?
>
> (ab)
>
> George Moschovitis schreef:
>
> Dear devs,
>
> I have a little problem with the rspec infrastructure 'borrowed' from
> Ramaze.
>
> when I run the (few) og tests with
>
> rake test:og
>
> I get:
>
> (in /home/gmosx/code/public)
> Running og...                    [   1 specs -   0 failed ]
> Running og/store/sql...          [   1 specs -   0 failed ]
> Running og/validation...         [   1 specs - all passed ]
> -------------------------------------[ og
> ]-------------------------------------
> ExitStatus:
> #<Process::Status: pid=13203,exited(0)>
> StdOut:
> Database "test" dropped
> .
>
> Finished in 0.136994 seconds
>
> 1 example, 0 failures
>
> The problem seems to be that the system command used to drop the database
> before each test. It seems to trigger the error code in
> script/lib/wrap.rb...
>
> If you run the tests one by one they work.
>
> Michael, Jonathan, Arne, do you have any idea?
>
> -g.
>
>
> --
> http://www.me.gr
> http://phidz.com
> http://blog.gmosx.com
> http://cull.gr
> http://www.joy.gr
> http://nitroproject.org
>
> ------------------------------
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.orghttp://rubyforge.org/mailman/listinfo/nitro-general
>
>
>
> --
> Arne Brasseur
> http://www.arnebrasseur.netarne@arnebrasseur.net
>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>



-- 
http://www.me.gr
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070903/06f43bad/attachment.html 


More information about the Nitro-general mailing list