From 99fddca0777062c8cf9f13cc718ec8a583c83e51 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Wed, 19 Mar 2014 22:06:28 +0000 Subject: [PATCH] uploaded_file: remove activities before testing to avoid failure --- test/unit/uploaded_file_test.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/test/unit/uploaded_file_test.rb b/test/unit/uploaded_file_test.rb index f2fdf9c..9392cd2 100644 --- a/test/unit/uploaded_file_test.rb +++ b/test/unit/uploaded_file_test.rb @@ -322,6 +322,7 @@ class UploadedFileTest < ActiveSupport::TestCase end should 'group trackers activity of image\'s upload' do + ActionTracker::Record.delete_all gallery = fast_create(Gallery, :profile_id => profile.id) count = ActionTracker::Record.find_all_by_verb('upload_image').count image1 = UploadedFile.create!(:uploaded_data => fixture_file_upload('/files/rails.png', 'image/png'), :parent => gallery, :profile => profile) -- libgit2 0.21.2