Mongomapper

Hi

I’m unable to run the tests for the mongo driver and mongomapper but
I’m
able to run all but 1 example, and that example doesn’t work on MRI
either.
The error from Test::Unit has something to do with shoulda and mocha in
the
same project from what I could find on the web.

So the good news I think is that mongomapper seems to work from the
limited
amount of tests I’ve done with it so far.

  • C:\dev\mongo-ruby-driver
    (master) » ir -S rake test:ruby
    (in C:/dev/mongo-ruby-driver)
    C:/ironruby/bin/ir.exe -I"lib"
    “C:/ironruby/lib/ironruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb”
    “test/unit/collection_test.rb” “test/unit/connection_test.rb”
    “test/unit/cursor_test.rb” “test/unit/db_test.rb”

**Notice: C extension not loaded. This is required for optimum MongoDB
Ruby
driver performance.
You can install the extension as follows:
gem install mongo_ext

If you continue to receive this message after installing, make sure
that
the
mongo_ext gem is in your load path and that the mongo_ext and mongo
gems
are of the same version.

:0:in const_missing': uninitialized constant Test::Unit::TestResult::TestResultFailureSupport (NameError) from C:/ironruby/lib/ironruby/gems/1.8/gems/test-unit-2.0.3/lib/test/unit/testresult.rb:28 from C:/ironruby/lib/ironruby/gems/1.8/gems/test-unit-2.0.3/lib/test/unit/ui/testrunnermediator.rb:9 from C:/ironruby/lib/ironruby/gems/1.8/gems/test-unit-2.0.3/lib/test/unit/ui/console/testrunner.rb:9 from :0:inrequire’
from custom_require.rb:30:in require' from :0:inrequire’
from custom_require.rb:30:in require' from C:/ironruby/lib/ruby/1.8/test/unit/autorunner.rb:25 from :0:inrequire’
from custom_require.rb:30:in require' from C:/ironruby/lib/ruby/1.8/test/unit/autorunner.rb:214:inrun’
from :0:in []' from C:/ironruby/lib/ruby/1.8/test/unit/autorunner.rb:12:inrun’
from C:/ironruby/lib/ruby/1.8/test/unit.rb:278
rake aborted!
Command failed with status (1): [C:/ironruby/bin/ir.exe -I"lib"
"C:/ironrub…]
C:/dev/mongo-ruby-driver/rakefile:38
(See full trace by running task with --trace)

Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
Web: http://whiterabbitconsulting.eu - http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
Microsoft IronRuby/C# MVP