This project is archived and is in readonly mode.
Errors in test suite under 1.8.6-p399 related to Mocha?
Reported by Jeroen van Dijk | May 16th, 2010 @ 10:00 PM
I get the following errors when running under 1.8.6
1) Error:
test_exists_without_http_mock(BaseTest):
NoMethodError: undefined method `any_instance' for ActiveResource::Connection:Class
./test/base_test.rb:989:in `test_exists_without_http_mock'
2) Error:
test_accept_http_header(ConnectionTest):
NoMethodError: undefined method `mock' for #<ConnectionTest:0xb794ecd0>
./test/connection_test.rb:203:in `test_accept_http_header'
3) Error:
test_ssl_error(ConnectionTest):
NoMethodError: undefined method `expects' for #<ActiveResource::Connection:0xb7be39a0>
./test/connection_test.rb:223:in `test_ssl_error'
4) Error:
test_timeout(ConnectionTest):
NoMethodError: undefined method `mock' for #<ConnectionTest:0xb794e99c>
./test/connection_test.rb:185:in `test_timeout'
161 tests, 500 assertions, 0 failures, 4 errors
rake aborted!
Command failed with status (1): [/home/vagrant/.rvm/rubies/ruby-1.8.6-p399/...]
Comments and changes to this ticket
-
Curtis Carter May 22nd, 2010 @ 10:00 PM
Unable to replicate. Mocha 0.9.8
These are the only tests that would fail in ActiveResource if you do not have mocha.
-
Santiago Pastorino May 22nd, 2010 @ 11:10 PM
Please try gem install mocha and see what happens.
It's weird because http://ci.rubyonrails.org/ says that 1.8.6 is green.
Thanks and please tell us if you can make it work. -
Rohit Arondekar June 19th, 2010 @ 05:19 PM
- State changed from new to invalid
Jeroen, since you didn't follow up I'm assuming the issue was resolved by installing mocha? Closing ticket, if issue still exists please make a comment to re-open ticket.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>