Commit 772579236678e598dbb7c64788d14cbfa83adb9b

Authored by Daniela Feitosa
1 parent d2ee8681

Fixed test

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
test/functional/profile_controller_test.rb
... ... @@ -1141,6 +1141,7 @@ class ProfileControllerTest < ActionController::TestCase
1141 1141 should "view more activities paginated" do
1142 1142 login_as(profile.identifier)
1143 1143 article = TinyMceArticle.create!(:profile => profile, :name => 'An Article about Free Software')
  1144 + ActionTracker::Record.destroy_all
1144 1145 40.times{ ActionTracker::Record.create!(:user_id => profile.id, :user_type => 'Profile', :verb => 'create_article', :target_id => article.id, :target_type => 'Article', :params => {'name' => article.name, 'url' => article.url, 'lead' => article.lead, 'first_image' => article.first_image})}
1145 1146 assert_equal 40, profile.tracked_actions.count
1146 1147 assert_equal 40, profile.activities.count
... ...