This project is archived and is in readonly mode.

#3825 ✓committed
Santiago Pastorino

method_missing errors activeresource tests, mocha is not required there

Reported by Santiago Pastorino | January 31st, 2010 @ 09:03 PM

santiago@debian:~/Documentos/WyeWorks/Proys/rails/activeresource/test$ ruby cases/base_test.rb 
Loaded suite cases/base_test
Started
.............................E.......................................EEEE.........
Finished in 1.238166 seconds.

  1) Error:
test_exists_without_http_mock(BaseTest):
NoMethodError: undefined method `any_instance' for ActiveResource::Connection:Class
    cases/base_test.rb:987:in `test_exists_without_http_mock'

  2) Error:
test_update_attribute_as_string(BaseTest):
NoMethodError: undefined method `expects' for #
    /home/santiago/Documentos/WyeWorks/Proys/rails/activeresource/lib/active_resource/base.rb:1411:in `method_missing'
    cases/base_test.rb:849:in `test_update_attribute_as_string'

  3) Error:
test_update_attribute_as_symbol(BaseTest):
NoMethodError: undefined method `expects' for #
    /home/santiago/Documentos/WyeWorks/Proys/rails/activeresource/lib/active_resource/base.rb:1411:in `method_missing'
    cases/base_test.rb:840:in `test_update_attribute_as_symbol'

  4) Error:
test_update_attributes_as_strings(BaseTest):
NoMethodError: undefined method `expects' for #
    /home/santiago/Documentos/WyeWorks/Proys/rails/activeresource/lib/active_resource/base.rb:1411:in `method_missing'
    cases/base_test.rb:870:in `test_update_attributes_as_strings'

  5) Error:
test_update_attributes_as_symbols(BaseTest):
NoMethodError: undefined method `expects' for #
    /home/santiago/Documentos/WyeWorks/Proys/rails/activeresource/lib/active_resource/base.rb:1411:in `method_missing'
    cases/base_test.rb:859:in `test_update_attributes_as_symbols'

82 tests, 241 assertions, 0 failures, 5 errors

Comments and changes to this 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>

Attachments

Referenced by

Pages