Commit df002879b887b1cc2145a730db82439d972834f1
1 parent
d9f771c3
Exists in
master
and in
29 other branches
ArticleTest: another attempt at fixing this fragile test
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
test/unit/article_test.rb
@@ -1077,10 +1077,11 @@ class ArticleTest < ActiveSupport::TestCase | @@ -1077,10 +1077,11 @@ class ArticleTest < ActiveSupport::TestCase | ||
1077 | end | 1077 | end |
1078 | 1078 | ||
1079 | should 'create the notification to organization and all organization members' do | 1079 | should 'create the notification to organization and all organization members' do |
1080 | + Profile.delete_all | ||
1080 | ActionTracker::Record.delete_all | 1081 | ActionTracker::Record.delete_all |
1081 | 1082 | ||
1082 | community = fast_create(Community) | 1083 | community = fast_create(Community) |
1083 | - member_1 = Person.first | 1084 | + member_1 = fast_create(Person) |
1084 | community.add_member(member_1) | 1085 | community.add_member(member_1) |
1085 | 1086 | ||
1086 | article = create TinyMceArticle, :name => 'Tracked Article 1', :profile_id => community.id | 1087 | article = create TinyMceArticle, :name => 'Tracked Article 1', :profile_id => community.id |