From b376dedb3ed3d2004f63e7162af08e0f602ed2dd Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 29 Jul 2013 21:44:12 -0300 Subject: [PATCH] [postgres-tests] Removing duplicated test from article --- test/unit/article_test.rb | 15 --------------- 1 file changed, 0 insertions(+), 15 deletions(-) diff --git a/test/unit/article_test.rb b/test/unit/article_test.rb index 01881cf..959a236 100644 --- a/test/unit/article_test.rb +++ b/test/unit/article_test.rb @@ -165,21 +165,6 @@ class ArticleTest < ActiveSupport::TestCase end end - should 'search for recent documents' do - other_profile = create_user('otherpropfile').person - - first = fast_create(TextArticle, :profile_id => profile.id, :name => 'first') - second = fast_create(TextArticle, :profile_id => profile.id, :name => 'second') - third = fast_create(TextArticle, :profile_id => profile.id, :name => 'third') - fourth = fast_create(TextArticle, :profile_id => profile.id, :name => 'fourth') - fifth = fast_create(TextArticle, :profile_id => profile.id, :name => 'fifth') - - other_first = other_profile.articles.build(:name => 'first'); other_first.save! - - assert_equal [other_first, fifth, fourth], Article.recent(3) - assert_equal [other_first, fifth, fourth, third, second, first], Article.recent(6) - end - should 'not show private documents as recent' do p = create_user('usr1').person Article.destroy_all -- libgit2 0.21.2