[Nitro] test failures in og/dbi

Mark Van De Vyver mvyver at gmail.com
Tue Sep 18 07:23:22 EDT 2007


Hi Dan,
Yes the DBI adapter is a work in progress.  I it's currently not useful.
I'm a bit confused.... I contributed that code by building on the 0.50
gem, anyway it seems you have it, best advice for the moment is to
ignore it/ easiest might be to remove/empty the DBI/test files?

There are some issues that mean I've altered how I'll proceed with
this adapter, I'd like to get things implemented then, once complete,
contribute 'snippets' and their passing specs to george.  At the
moment things are very much 2-steps forward 1 step back.

Anyway, the adapter is progressing:
103 examples, 15 failures, 19 pending

Of the current 15 failures 14 are 'pending' changes I've implemented -
I've yet to work out how best to get this to George....

Cheers
Mark

On 9/18/07, Dan North <dan at tastapod.com> wrote:
>
>  Hi there.
>
>  I'm getting some errors in the og specs. Can anyone help?
>
>  Thanks,
>  Dan
>
>
> dan at kyle:~/projects/nitro/repo.nitroproject.org$ rake
> test:og
>  /var/lib/gems/1.8/bin/rake:17:Warning: require_gem is
> obsolete.  Use gem instead.
>  (in /home/dan/projects/nitro/repo.nitroproject.org)
>  Running og...                           [   1 specs - all passed ]
>  Running og/adapter/dbi...               [   8 specs -   4 failed ]
>  Running og/model/timestamped...         [   1 specs - all passed ]
>  Running og/store/sql...                 [   1 specs - all passed ]
>  Running og/util/ann_attr...             [   1 specs - all passed ]
>  Running og/validation...                [   2 specs - all passed ]
>  -------------------------------[ og/adapter/dbi
> ]-------------------------------
>  ExitStatus:
>  #<Process::Status: pid=31917,exited(0)>
>  StdOut:
>  Database "test" dropped
>  FFDatabase "test" dropped
>  FF
>
>  1)
>  NameError in 'The connection to a new Og store manager should use sqlite
> memory as the default, when given no option.'
>  undefined method `eof?' for class `SQLite3::ResultSet'
> /var/lib/gems/1.8/gems/og-0.50.0/lib/og/adapter/sqlite/override.rb:9:in
> `alias_method'
> /var/lib/gems/1.8/gems/og-0.50.0/lib/og/adapter/sqlite/override.rb:9:
>  /var/lib/gems/1.8/gems/og-0.50.0/lib/og/adapter/sqlite.rb:12:
>  /var/lib/gems/1.8/gems/og-0.50.0/lib/og/adapter.rb:30:in `for_name'
>  /var/lib/gems/1.8/gems/og-0.50.0/lib/og/manager.rb:51:in `initialize'
>  /var/lib/gems/1.8/gems/og-0.50.0/lib/og.rb:176:in `new'
>  /var/lib/gems/1.8/gems/og-0.50.0/lib/og.rb:176:in `start'
> /home/dan/projects/nitro/repo.nitroproject.org/og/test/og/adapter/dbi.rb:16:
> /home/dan/projects/nitro/repo.nitroproject.org/og/test/og/adapter/dbi.rb:39:
>
>  2)
>  NameError in 'The connection to a new Og store manager should use sqlite
> memory as the default, when given an empty option hash.'
>  undefined method `eof?' for class `SQLite3::ResultSet'
> /var/lib/gems/1.8/gems/og-0.50.0/lib/og/adapter/sqlite/override.rb:9:in
> `alias_method'
> /var/lib/gems/1.8/gems/og-0.50.0/lib/og/adapter/sqlite/override.rb:9:
>  /var/lib/gems/1.8/gems/og-0.50.0/lib/og/adapter/sqlite.rb:12:
>  /var/lib/gems/1.8/gems/og-0.50.0/lib/og/adapter.rb:30:in `for_name'
>  /var/lib/gems/1.8/gems/og-0.50.0/lib/og/manager.rb:51:in `initialize'
>  /var/lib/gems/1.8/gems/og-0.50.0/lib/og.rb:176:in `new'
>  /var/lib/gems/1.8/gems/og-0.50.0/lib/og.rb:176:in `start'
> /home/dan/projects/nitro/repo.nitroproject.org/og/test/og/adapter/dbi.rb:25:
> /home/dan/projects/nitro/repo.nitroproject.org/og/test/og/adapter/dbi.rb:39:
>
>  3)
>  NoMethodError in 'The DBI adapter structure before(:all)'
>  undefined method `merge' for nil:NilClass
> /home/dan/projects/nitro/repo.nitroproject.org/og/test/og/adapter/../../helper.rb:69:in
> `start'
> /home/dan/projects/nitro/repo.nitroproject.org/og/test/og/adapter/dbi.rb:43:
> /home/dan/projects/nitro/repo.nitroproject.org/og/test/og/adapter/dbi.rb:39:
>
>  4)
>  NoMethodError in 'The DBI adapter structure after(:all)'
>  undefined method `store' for nil:NilClass
> /home/dan/projects/nitro/repo.nitroproject.org/og/test/og/adapter/dbi.rb:65:
> /home/dan/projects/nitro/repo.nitroproject.org/og/test/og/adapter/dbi.rb:39:
>
>  Finished in 0.343557 seconds
>
>  4 examples, 4 failures
>  StdErr:
>
>  nil
>  14 examples, 4 failures
>
>  These failed: og/adapter/dbi
>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>


More information about the Nitro-general mailing list