title: How to test a scope in Rails 3
body: <p>What's the best way to test scopes in Rails 3.  In rails 2, I would do something like:</p>
  
  <p>Rspec:</p>
  
  <pre><code>it 'should have a top_level scope' do
    Category.top_level.proxy_options.should == {:conditions =&gt; {:parent_id =&gt; nil}}
  end
  </code></pre>
  
  <p>This fails in rails 3 with a "undefined method `proxy_options' for []:ActiveRecord::Relation" error.  </p>
  
  <p>How are people testing that a scope is specified with the correct options?  I see you could examine the arel object and might be able to make some expectations on that, but I'm not sure what the best way to do it would be.</p>