I think you need the mocha gem installed.  Otherwise I am outside my
knowledge base both with sqlite and mac.

2009/3/4 Jeff Schwab <[email protected]>

>
> Colin Law wrote:
> > Try this:
> > http://afreshcup.com/2008/10/27/contributing-to-rails-step-by-step/
>
> Thanks, that looks promising.  Unfortunately, rake self-test fails
> immediately.  Here is the error message, with some path prefixes
> removed, and lines split for Usenet readability:
>
> $ rake test_sqlite3
> (in rails/activerecord)
> :0:Warning: Gem::manage_gems is deprecated \
>     and will be removed on or after March 2009.
> /opt/local/bin/ruby -Ilib:test:test/connections/native_sqlite3\
>     [lots of .rb paths elided]
> <internal:gem_prelude>:249:in `push_gem_version_on_load_path':\
>     undefined method `<=>' for nil:NilClass (NoMethodError)
>   from <internal:gem_prelude>:14:in `gem'
>   from rails/activerecord/test/cases/helper.rb:8:in `<top (required)>'
>   from rails/activerecord/test/cases/aaa_create_tables_test.rb:2:\
>       in `require'
>   from rails/activerecord/test/cases/aaa_create_tables_test.rb:2:\
>       in `<top (required)>'
>   from rake-0.8.3/lib/rake/rake_test_loader.rb:5:in `load'
>   from rake-0.8.3/lib/rake/rake_test_loader.rb:5:in `block in <main>'
>   from rake-0.8.3/lib/rake/rake_test_loader.rb:5:in `each'
>         from rake-0.8.3/lib/rake/rake_test_loader.rb:5:in `<main>'
> rake aborted!
> Command failed with status (1): \
>     [/opt/local/bin/ruby -Ilib:test:test/connec...]
> (See full trace by running task with --trace)
> $
>
> The relevant line (8) in helper.rb looks like this:
>
> gem 'mocha', '>= 0.9.5'
>
> By the way, how does one "create" and empty sqlite3 database?  I tried
> mysql, and it fought me, too.  I think part of my problem is that I'm
> trying to come to grips with OS X (coming from other Unixen) at the same
> time I'm trying to learn Rails.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to