[Rails-core] Re: activeresource: rake test: undefined method `mock' `expects' `any_instance'

2009-10-07 Thread James Mead
2009/10/7 Chad Woolley thewoolley...@gmail.com: On Tue, Oct 6, 2009 at 4:00 PM, Philippe Creux pcr...@gmail.com wrote: I have few patches for active resource I would like to publish but I can't get the test suite passing. In: rails/activeresource (2-3-stable) Running: rake test Got the

[Rails-core] Re: activeresource: rake test: undefined method `mock' `expects' `any_instance'

2009-10-07 Thread taryneast
silly question but... sudo gem install mocha ? I know that caught me the first time I tried to run the test suite. :P Cheers, Taryn On Oct 7, 12:00 am, Philippe Creux pcr...@gmail.com wrote: Hi all, I have few patches for active resource I would like to publish but I can't get the test

[Rails-core] Re: activeresource: rake test: undefined method `mock' `expects' `any_instance'

2009-10-07 Thread Chad Woolley
On Wed, Oct 7, 2009 at 1:55 AM, James Mead jamesmea...@gmail.com wrote: This is likely to be due to using Mocha = 0.9.6 when Mocha is being loaded *before* Test::Unit. You need to make sure you are loading Mocha *after* Test::Unit. There are a number of ways of achieving this depending on

[Rails-core] Re: activeresource: rake test: undefined method `mock' `expects' `any_instance'

2009-10-07 Thread Philippe Creux
I didn't know that the tests rely on mocha. So sudo gem install mocha did the trick. :) φ On Wed, Oct 7, 2009 at 07:49, taryneast taryne...@gmail.com wrote: silly question but... sudo gem install mocha ? I know that caught me the first time I tried to run the test suite. :P Cheers,

[Rails-core] Re: activeresource: rake test: undefined method `mock' `expects' `any_instance'

2009-10-06 Thread Chad Woolley
On Tue, Oct 6, 2009 at 4:00 PM, Philippe Creux pcr...@gmail.com wrote: I have few patches for active resource I would like to publish but I can't get the test suite passing. In: rails/activeresource (2-3-stable) Running: rake test Got the following:  1) Error: