search for: referring_journals

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

2007 Sep 11
3
Expectations on portions of arguments called.
...like to create expectations on just portions of the arguments a function 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_jou...