Commit 72188e4ad138e5962fada50cbdfc8466b1d8a39e
1 parent
3759e8de
Exists in
master
and in
29 other branches
[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,7 +44,7 @@ Given /^the following (community|communities|enterprises?|organizations?)$/ do | | ||
44 | end | 44 | end |
45 | if category && !category.blank? | 45 | if category && !category.blank? |
46 | cat = Category.find_by_slug category | 46 | cat = Category.find_by_slug category |
47 | - organization.categories << cat | 47 | + ProfileCategorization.add_category_to_profile(cat, organization) |
48 | end | 48 | end |
49 | if img_name | 49 | if img_name |
50 | img = Image.create!(:uploaded_data => fixture_file_upload('/files/'+img_name+'.png', 'image/png')) | 50 | img = Image.create!(:uploaded_data => fixture_file_upload('/files/'+img_name+'.png', 'image/png')) |