# Using a method from another class

**URL:** <https://www.ruby-forum.com/t/using-a-method-from-another-class/177224>\
**Category:** Rails\
**Created:** [October 13, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/using-a-method-from-another-class/177224 "2009-10-13T19:56:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLoudermilk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/13edae/32.png) [@BLoudermilk](https://www.ruby-forum.com/u/BLoudermilk)\
**Post date:** [October 13, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/using-a-method-from-another-class/177224/1 "2009-10-13T19:56:21Z")

</div>

I’m writing a unit test that inherits from ActionController::TestCase,  
but I need to access a method in ActiveResource::Connection. Is this  
possible? How can I do it?
