search for: citations_count

Displaying 1 result from an estimated 1 matches for "citations_count".

2007 Sep 11
3
Expectations on portions of arguments called.
...ion extension adds an order clause to the find options hash. Currently I simply check the entire argument structure, something like this def test_referring_journals_should_order_by_citation_count article = articles(:highly_cited_article) Journal.expects(:find).with( :all, { :order => ''citations_count DESC'', :joins => nil, :select => nil, :offset => nil, :conditions => ''article_id = 1'' } ) article.referring_journals end The example is fabricated, but what I''d like to do is something perhaps like: def test_referring_journals_should_order_by_citatio...