From fa8c4aac52b20c1e8fe532e2df7bd0775e6e9aa0 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 20 Aug 2013 15:49:08 -0300 Subject: [PATCH] [postgres-tests] Fixing category tests --- test/unit/category_test.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/test/unit/category_test.rb b/test/unit/category_test.rb index 2b886fc..64dbf0d 100644 --- a/test/unit/category_test.rb +++ b/test/unit/category_test.rb @@ -488,6 +488,7 @@ class CategoryTest < ActiveSupport::TestCase end should 'paginate upcoming events' do + Event.destroy_all category = Category.create!(:name => 'category1', :environment_id => Environment.default.id) profile = fast_create(Profile) event1 = Event.create!(:name => 'event1', :profile => profile, :start_date => Time.now) -- libgit2 0.21.2