Removing duplicated code

This commit is contained in:
Marcos Tapajós 2010-02-27 19:23:02 -03:00
parent 67ee6e3e74
commit 228783d453

View file

@ -431,9 +431,6 @@ describe "ExtendedDocument views" do
end end
end end
it "should provide a class method to get a collection for a view" do it "should provide a class method to get a collection for a view" do
class Article
provides_collection :article_details, 'Article', 'by_date', :descending => true, :include_docs => true
end
articles = Article.find_all_article_details(:key => Date.today) articles = Article.find_all_article_details(:key => Date.today)
articles.class.should == Array articles.class.should == Array
articles.size.should == 7 articles.size.should == 7