From df002879b887b1cc2145a730db82439d972834f1 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 24 Sep 2014 18:12:13 -0300 Subject: [PATCH] ArticleTest: another attempt at fixing this fragile test --- test/unit/article_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/article_test.rb b/test/unit/article_test.rb index 640b725..315afee 100644 --- a/test/unit/article_test.rb +++ b/test/unit/article_test.rb @@ -1077,10 +1077,11 @@ class ArticleTest < ActiveSupport::TestCase end should 'create the notification to organization and all organization members' do + Profile.delete_all ActionTracker::Record.delete_all community = fast_create(Community) - member_1 = Person.first + member_1 = fast_create(Person) community.add_member(member_1) article = create TinyMceArticle, :name => 'Tracked Article 1', :profile_id => community.id -- libgit2 0.21.2