Removing duplicated code
This commit is contained in:
parent
67ee6e3e74
commit
228783d453
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue