Looks good. I've added your text to the dev-wiki with some minor changes.

 

Thanks!

 

Reinier

 

Van: Eric Allen [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 19 mei 2008 7:36
Aan: Reinier Balt; [email protected]
Onderwerp: Re: test dependencies

 

I don't have an account on the wiki at this point, so I've written up the
testing howto in a separate file and attached it here. Please review and
comment.

 

On Mon, May 12, 2008 at 8:26 AM, Eric Allen <[EMAIL PROTECTED]> wrote:

I'd be happy to write something up on thw wiki when I get a chance! It
turns out my second error was caused by an outdated environment.rb
that needed to be re-copied from the template. After that the tests
were fine.


On 5/12/08, Reinier Balt <[EMAIL PROTECTED]> wrote:
> Hi
>
> You're right that it's difficult to figure out. Would be best to describe
> the setup in the wiki. Can somebody write a short howto?
>
> Reinier
>
>
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Namens Eric Allen
> Verzonden: woensdag 7 mei 2008 18:55
> Aan: [email protected]
> Onderwerp: [Tracks-discuss] test dependencies
>
> Hi,
> I'm a bit new to the latest Rails stuff, and still unfamiliar with the
> Tracks codebase, but I'm struggling to get up to speed. When I try to run
> the tests with "rake test," I'm getting errors that I have to go back and
> figure out from googling. I managed to uncover that I need the ZenTest and
> flexmock gems installed, but is it reasonable to expect people to figure
> this out from the error messages or test_helper.rb source? Does every
> self-respecting Rails developer already have these? Once I got past that,
I
> got the following error
>
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:304:in
> `report_activate_error': RubyGem version error: actionpack(2.0.1 not =
> 1.13.6) (Gem::LoadError)
>       from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:238:in
> `activate'
>       from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:264:in
> `activate'
>       from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:263:in `each'
>       from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:263:in
> `activate'
>       from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>       from
>
/Users/epall/programming/tracks/vendor/rails/activerecord/lib/../../activesu
> pport/lib/active_support/dependencies.rb:496:in `require'
>       from
>
/Users/epall/programming/tracks/vendor/rails/activerecord/lib/../../activesu
> pport/lib/active_support/dependencies.rb:342:in
> `new_constants_in_without_injection'
>       from
>
/Users/epall/programming/tracks/vendor/plugins/has_many_polymorphs/lib/has_m
> any_polymorphs/dependencies.rb:29:in `new_constants_in'
>       from
>
/Users/epall/programming/tracks/vendor/rails/activerecord/lib/../../activesu
> pport/lib/active_support/dependencies.rb:496:in `require'
>       from ./test/unit/../test_helper.rb:7
>       from ./test/unit/context_test.rb:1:in `require'
>       from ./test/unit/context_test.rb:1
>       from
>
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb:5:
> in `load'
>       from
>
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb:5
>       from
>
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb:5:
> in `each'
>       from
>
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb:5
> rake aborted!
> Command failed with status (1): [/opt/local/bin/ruby -Ilib:test
> "/opt/local...]
>
>
> I've got Rails 2.0.2 installed via gem on my OS X 10.5 box, and the logs
say
> the vendor rails is 2.0.2, so how come it's trying to use a weird version
of
> actionpack?
>
> Sorry I'm asking so many dumb questions. I really want to get to work
> implementing tickets, but I want to make sure I have a stable state to
start
> from.
>
>
>

 

_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

Reply via email to