Commit 7974fb58b71faf3c1a1f36ef84c4fe4e5a3740c2

Authored by AntonioTerceiro
1 parent 9db82030

ActionItem405: still removing comment search stuff


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1909 3f533792-8f58-4932-b0fe-aaf55b0a4547
test/unit/comment_test.rb
@@ -127,18 +127,6 @@ class CommentTest < Test::Unit::TestCase @@ -127,18 +127,6 @@ class CommentTest < Test::Unit::TestCase
127 assert c.errors.invalid?(:email) 127 assert c.errors.invalid?(:email)
128 end 128 end
129 129
130 - should 'find by initial' do  
131 - owner = create_user('testuser').person  
132 - article = owner.articles.create!(:name => 'test', :body => '...')  
133 - c1 = article.comments.create!(:title => "A comment", :body => '...', :author => owner)  
134 - c2 = article.comments.create!(:title => "Better one", :body => '...', :author => owner)  
135 -  
136 - list = Comment.find_by_initial('a')  
137 -  
138 - assert_includes list, c1  
139 - assert_not_includes list, c2  
140 - end  
141 -  
142 should 'notify article to reindex after saving' do 130 should 'notify article to reindex after saving' do
143 owner = create_user('testuser').person 131 owner = create_user('testuser').person
144 article = owner.articles.create!(:name => 'test', :body => '...') 132 article = owner.articles.create!(:name => 'test', :body => '...')
test/unit/environment_test.rb
@@ -263,20 +263,6 @@ class EnvironmentTest < Test::Unit::TestCase @@ -263,20 +263,6 @@ class EnvironmentTest < Test::Unit::TestCase
263 assert_kind_of Role, Environment::Roles.admin 263 assert_kind_of Role, Environment::Roles.admin
264 end 264 end
265 265
266 - should 'have comments on the articles' do  
267 - environment = Environment.default  
268 -  
269 - p1 = create_user('testuser').person  
270 -  
271 - doc1 = p1.articles.build(:name => 'text 1'); doc1.save!  
272 - doc2 = p1.articles.build(:name => 'text 2'); doc2.save!  
273 -  
274 - c1 = doc1.comments.build(:title => 'a comment', :body => 'bli', :author => p1); c1.save!  
275 - c2 = doc2.comments.build(:title => 'a comment', :body => 'bli', :author => p1); c2.save!  
276 -  
277 - assert_equivalent [c1,c2], environment.comments  
278 - end  
279 -  
280 should 'have products through enterprises' do 266 should 'have products through enterprises' do
281 env = Environment.default 267 env = Environment.default
282 e1 = Enterprise.create!(:name => 'test_ent1', :identifier => 'test_ent1') 268 e1 = Enterprise.create!(:name => 'test_ent1', :identifier => 'test_ent1')