diff --git a/test/unit/article_test.rb b/test/unit/article_test.rb index e3f96d3..ee46942 100644 --- a/test/unit/article_test.rb +++ b/test/unit/article_test.rb @@ -913,6 +913,7 @@ class ArticleTest < ActiveSupport::TestCase should 'not doubly escape quotes in the name' do person = fast_create(Person) community = fast_create(Community) + community.add_member(profile) article = fast_create(Article, :name => 'article name', :profile_id => person.id) a = create(ApproveArticle, :article => article, :target => community, :requestor => profile) a.finish diff --git a/test/unit/folder_test.rb b/test/unit/folder_test.rb index e2a0a51..247c4d5 100644 --- a/test/unit/folder_test.rb +++ b/test/unit/folder_test.rb @@ -93,6 +93,7 @@ class FolderTest < ActiveSupport::TestCase image = UploadedFile.create!(:profile => person, :uploaded_data => fixture_file_upload('/files/rails.png', 'image/png')) community = fast_create(Community) + community.add_member(person) folder = fast_create(Folder, :profile_id => community.id) a = create(ApproveArticle, :article => image, :target => community, :requestor => person, :article_parent => folder) a.finish diff --git a/test/unit/gallery_test.rb b/test/unit/gallery_test.rb index 928f550..8e2d5b8 100644 --- a/test/unit/gallery_test.rb +++ b/test/unit/gallery_test.rb @@ -101,6 +101,7 @@ class GalleryTest < ActiveSupport::TestCase i = UploadedFile.create!(:profile => p, :uploaded_data => fixture_file_upload('/files/rails.png', 'image/png')) c = fast_create(Community) + c.add_member(p) gallery = fast_create(Gallery, :profile_id => c.id) a = create(ApproveArticle, :article => i, :target => c, :requestor => p, :article_parent => gallery) -- libgit2 0.21.2