diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb index 5f9a7ac..241d059 100644 --- a/test/unit/comment_test.rb +++ b/test/unit/comment_test.rb @@ -127,18 +127,6 @@ class CommentTest < Test::Unit::TestCase assert c.errors.invalid?(:email) end - should 'find by initial' do - owner = create_user('testuser').person - article = owner.articles.create!(:name => 'test', :body => '...') - c1 = article.comments.create!(:title => "A comment", :body => '...', :author => owner) - c2 = article.comments.create!(:title => "Better one", :body => '...', :author => owner) - - list = Comment.find_by_initial('a') - - assert_includes list, c1 - assert_not_includes list, c2 - end - should 'notify article to reindex after saving' do owner = create_user('testuser').person article = owner.articles.create!(:name => 'test', :body => '...') diff --git a/test/unit/environment_test.rb b/test/unit/environment_test.rb index 56e0329..22ed23e 100644 --- a/test/unit/environment_test.rb +++ b/test/unit/environment_test.rb @@ -263,20 +263,6 @@ class EnvironmentTest < Test::Unit::TestCase assert_kind_of Role, Environment::Roles.admin end - should 'have comments on the articles' do - environment = Environment.default - - p1 = create_user('testuser').person - - doc1 = p1.articles.build(:name => 'text 1'); doc1.save! - doc2 = p1.articles.build(:name => 'text 2'); doc2.save! - - c1 = doc1.comments.build(:title => 'a comment', :body => 'bli', :author => p1); c1.save! - c2 = doc2.comments.build(:title => 'a comment', :body => 'bli', :author => p1); c2.save! - - assert_equivalent [c1,c2], environment.comments - end - should 'have products through enterprises' do env = Environment.default e1 = Enterprise.create!(:name => 'test_ent1', :identifier => 'test_ent1') -- libgit2 0.21.2