Commit 26c87582185d61cfc1cd9af5d96f05485e460ee5

Authored by Antonio Terceiro
1 parent d4cb6745

ActionItem1178: fixing very weird test crash

It works in the console, works in the running application, but that test
only passed when I forced the reload of the relationship.
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
test/unit/folder_test.rb
... ... @@ -140,10 +140,11 @@ class FolderTest < ActiveSupport::TestCase
140 140 should 'return published images as images' do
141 141 p = create_user('test_user').person
142 142 i = UploadedFile.create!(:profile => p, :uploaded_data => fixture_file_upload('/files/rails.png', 'image/png'))
  143 +
143 144 c = Community.create!(:name => 'test_com')
144 145 folder = Folder.create!(:name => 'folder', :profile => c)
145 146 pi = PublishedArticle.create!(:profile => c, :reference_article => i, :parent => folder)
146 147  
147   - assert_includes folder.images, pi
  148 + assert_includes folder.images(true), pi
148 149 end
149 150 end
... ...