Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Errors in test suite under 1.8.6-p399 related to Mocha?

#4621

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/...]

Reported by Jeroen van Dijk · May 16th, 2010 @ 10:00 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Curtis Carter
    Curtis Carter

    Unable to replicate. Mocha 0.9.8

    These are the only tests that would fail in ActiveResource if you do not have mocha.

    May 22nd, 2010 @ 10:00 PM

  2. Santiago Pastorino
    Santiago Pastorino

    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.

    May 22nd, 2010 @ 11:10 PM

  3. Rohit Arondekar
    Rohit Arondekar
    • 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.

    June 19th, 2010 @ 05:19 PM