title: Testing a PORO in a Rails app
body: <p>I use Rspec to test my Rails app. In my Model directory I have a Ruby file called location_services.rb. In this file is</p>
  
  <pre><code>module LocationServices
    class IpLocator
       attr_reader :response, :status
       def initialize(response, status)
         ....
       end
  end
  </code></pre>
  
  <p>How can I test the creation of an IpLocator object all by itself? I just want to be able to call IpLocator.create_type_1.response and test what I get whithout the whole rails stack.</p>
  
  <p>create_type_1 is a class method on IpLocator that will call new to instansiate an object.</p>