[Nitro] Og tests
Bryan Soto
bryan.a.soto at gmail.com
Sun Feb 5 02:45:35 EST 2006
On 2/4/06, TRANS <transfire at gmail.com> wrote:
>
> On 2/4/06, Bryan Soto <bryan.a.soto at gmail.com> wrote:
> > Basically, some new tests were added to the suite with Og.setup calls.
> > Attached patch fixes that, moves some class definitions to inside the
> test
> > case namespace to ensure unique tables are created for each test.
> >
> > Multiple Og.setup calls don't work very well which is why I moved them
> to
> > CONFIG.rb to ensure they only happened once.
> >
> > Most of the current errors come from tc_orderable.rb. It seems as though
> the
> > self.include_with_params call in og/lib/glue/orderable.rb:11 isn't
> executed.
> > I tried to put a breakpoint and some puts statements in it which never
> ran.
>
> The callback method is #included_with_parameters, one should use
> include as one normally does, but just add the parameters. For
> example:
>
> module M
> def self.included_with_parameters( base, parms )
> base.class_eval do
> define_method :check do
> parms
> end
> end
> end
> end
>
> class C
> include M, :p => "check"
> end
>
> T.
>
Thanks for the explanation. Attached makes the change per Trans' direction.
Still some errors, but it's progress. I'll check out whatever you don't get
to in the morning.
bryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060205/2b2dc570/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: more_og_test_suite_fixes.zip
Type: application/zip
Size: 5839 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060205/2b2dc570/attachment.zip
More information about the Nitro-general
mailing list