Commit 99fddca0777062c8cf9f13cc718ec8a583c83e51
1 parent
5c2a4987
Exists in
master
and in
29 other branches
uploaded_file: remove activities before testing to avoid failure
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
test/unit/uploaded_file_test.rb
... | ... | @@ -322,6 +322,7 @@ class UploadedFileTest < ActiveSupport::TestCase |
322 | 322 | end |
323 | 323 | |
324 | 324 | should 'group trackers activity of image\'s upload' do |
325 | + ActionTracker::Record.delete_all | |
325 | 326 | gallery = fast_create(Gallery, :profile_id => profile.id) |
326 | 327 | count = ActionTracker::Record.find_all_by_verb('upload_image').count |
327 | 328 | image1 = UploadedFile.create!(:uploaded_data => fixture_file_upload('/files/rails.png', 'image/png'), :parent => gallery, :profile => profile) | ... | ... |