Commit 72188e4ad138e5962fada50cbdfc8466b1d8a39e

Authored by Rodrigo Souto
1 parent 3759e8de

[postgres-tests] Fixing noosfero steps

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
features/step_definitions/noosfero_steps.rb
... ... @@ -44,7 +44,7 @@ Given /^the following (community|communities|enterprises?|organizations?)$/ do |
44 44 end
45 45 if category && !category.blank?
46 46 cat = Category.find_by_slug category
47   - organization.categories << cat
  47 + ProfileCategorization.add_category_to_profile(cat, organization)
48 48 end
49 49 if img_name
50 50 img = Image.create!(:uploaded_data => fixture_file_upload('/files/'+img_name+'.png', 'image/png'))
... ...