title: rSpec - how to test select inside a model method
body: <p>I have a model with a method that returns just the first name of a user and a qty.</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    def self.list
      select("firstname, qty").order("qty desc").all
    end
  end
  </code></pre>
  
  <p>how would I test the return value with rSpec?</p>
  
  <pre><code>User.list.should == [?????]
  </code></pre>
  
  <p>The method returns an array of User objects, but with only two attributes.  This is where I'm stuck.</p>