Commit b376dedb3ed3d2004f63e7162af08e0f602ed2dd
1 parent
63e61ac3
Exists in
master
and in
29 other branches
[postgres-tests] Removing duplicated test from article
Showing
1 changed file
with
0 additions
and
15 deletions
Show diff stats
test/unit/article_test.rb
... | ... | @@ -165,21 +165,6 @@ class ArticleTest < ActiveSupport::TestCase |
165 | 165 | end |
166 | 166 | end |
167 | 167 | |
168 | - should 'search for recent documents' do | |
169 | - other_profile = create_user('otherpropfile').person | |
170 | - | |
171 | - first = fast_create(TextArticle, :profile_id => profile.id, :name => 'first') | |
172 | - second = fast_create(TextArticle, :profile_id => profile.id, :name => 'second') | |
173 | - third = fast_create(TextArticle, :profile_id => profile.id, :name => 'third') | |
174 | - fourth = fast_create(TextArticle, :profile_id => profile.id, :name => 'fourth') | |
175 | - fifth = fast_create(TextArticle, :profile_id => profile.id, :name => 'fifth') | |
176 | - | |
177 | - other_first = other_profile.articles.build(:name => 'first'); other_first.save! | |
178 | - | |
179 | - assert_equal [other_first, fifth, fourth], Article.recent(3) | |
180 | - assert_equal [other_first, fifth, fourth, third, second, first], Article.recent(6) | |
181 | - end | |
182 | - | |
183 | 168 | should 'not show private documents as recent' do |
184 | 169 | p = create_user('usr1').person |
185 | 170 | Article.destroy_all | ... | ... |