Commit febc53cdb799839ac43b8a632af0c2ce769e3be8

Authored by Rodrigo Souto
1 parent 040f7d1e

Fixing fixtures (=P) path of gallery and forum

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/factories.rb
... ... @@ -424,7 +424,7 @@ module Noosfero::Factory
424 424  
425 425 def defaults_for_forum(params = {})
426 426 name = "forum_#{rand(1000)}"
427   - { :profile_id => 1, :path => name, :name => name, :slug => name.to_slug }.merge(params)
  427 + { :profile_id => 1, :path => name.to_slug, :name => name, :slug => name.to_slug }.merge(params)
428 428 end
429 429  
430 430 ###############################################
... ... @@ -433,7 +433,7 @@ module Noosfero::Factory
433 433  
434 434 def defaults_for_gallery(params = {})
435 435 name = "gallery_#{rand(1000)}"
436   - { :profile_id => 1, :path => name, :name => name, :slug => name.to_slug }.merge(params)
  436 + { :profile_id => 1, :path => name.to_slug, :name => name, :slug => name.to_slug }.merge(params)
437 437 end
438 438  
439 439 def defaults_for_suggest_article
... ...