search for: highly_cited_article

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

2007 Sep 11
3
Expectations on portions of arguments called.
...ion takes. For example, I want to verify that the a certain ActiveRecord association 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 i...