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,7 +424,7 @@ module Noosfero::Factory
424 424
425 def defaults_for_forum(params = {}) 425 def defaults_for_forum(params = {})
426 name = "forum_#{rand(1000)}" 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 end 428 end
429 429
430 ############################################### 430 ###############################################
@@ -433,7 +433,7 @@ module Noosfero::Factory @@ -433,7 +433,7 @@ module Noosfero::Factory
433 433
434 def defaults_for_gallery(params = {}) 434 def defaults_for_gallery(params = {})
435 name = "gallery_#{rand(1000)}" 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 end 437 end
438 438
439 def defaults_for_suggest_article 439 def defaults_for_suggest_article