[Nitro] Test cases and submitting patches.
Bryan Soto
bryan.a.soto at gmail.com
Tue Apr 18 21:08:25 EDT 2006
On 4/18/06, George Moschovitis <george.moschovitis at gmail.com> wrote:
> The current repo version passes all tests. Please run this script
There's these for glue:
Copied from http://rubyforge.org/pipermail/nitro-general/2006-April/003743.html
<copy>
Hey George,
I've applied to devlab. I still have that same question on the
configuration patch. I copied and pasted from my previous email below.
You added that evil clear_all_settings method back to
Glue::Configuration again in tc_configuration. Is there a reason for
that? It causes the test cases after that to fail when you run rake
test for glue. Or perhaps the problem is actually in tc_fixture since
it fails after the settings are cleared?
1) Error:
test_all(TestFixture):
NoMethodError: undefined method `[]' for nil:NilClass
(eval):3:in `root_dir'
./test/glue/../../lib/glue/fixture.rb:70:in `initialize'
./test/glue/tc_fixture.rb:20:in `test_all'
2) Error:
test_global(TestFixture):
NoMethodError: undefined method `[]' for nil:NilClass
(eval):3:in `root_dir'
./test/glue/../../lib/glue/fixture.rb:70:in `initialize'
./test/glue/../../lib/glue/fixture.rb:23:in `load'
./test/glue/../../lib/glue/fixture.rb:22:in `load'
./test/glue/tc_fixture.rb:38:in `test_global'
36 tests, 160 assertions, 0 failures, 2 errors
</copy>
There's also this rather interesting one that doesn't show up when
running rake test for Og:
/mnt/zip/devlab/nitrohq/og/lib/og/relation/has_many.rb:22:in
`resolve_polymorphic': undefined method `relations' for Bar:Class
(NoMethodError)
from /mnt/zip/devlab/nitrohq/og/lib/og/relation.rb:197:in
`resolve_polymorphic_relations'
from /mnt/zip/devlab/nitrohq/og/lib/og/relation.rb:183:in
`resolve_polymorphic_relations'
from /mnt/zip/devlab/nitrohq/og/lib/og/manager.rb:222:in
`manage_classes'
from /mnt/zip/devlab/nitrohq/og/lib/og/manager.rb:222:in
`manage_classes'
from ./test/og/tc_accumulator.rb:28
from ./script/test.rb:20
from /usr/lib/ruby/gems/1.8/gems/facets-1.3.1/lib/facets/core/dir/self/ls_r.rb:15:in
`recurse'
from /usr/lib/ruby/gems/1.8/gems/facets-1.3.1/lib/facets/core/dir/self/ls_r.rb:11:in
`recurse'
from /usr/lib/ruby/gems/1.8/gems/facets-1.3.1/lib/facets/core/dir/self/ls_r.rb:17:in
`recurse'
from /usr/lib/ruby/gems/1.8/gems/facets-1.3.1/lib/facets/core/dir/self/ls_r.rb:11:in
`recurse'
from ./script/test.rb:18
from ./script/test.rb:17
from ./script/test.rb:15
--
"Never tell people how to do things. Tell them what to do and they
will surprise you with their ingenuity." —General George S. Patton
More information about the Nitro-general
mailing list