Commit 3d1ac0e4b91449a8b0c64f28e031b522ac8348b3
1 parent
381a3674
Exists in
master
and in
29 other branches
rails3: include defaults_for_license to factory
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
test/factories.rb
| ... | ... | @@ -468,4 +468,10 @@ module Noosfero::Factory |
| 468 | 468 | { :name => 'National region ' + factory_num_seq.to_s } |
| 469 | 469 | end |
| 470 | 470 | |
| 471 | + def defaults_for_license | |
| 472 | + name = "License #{rand(1000)}" | |
| 473 | + slug = name.to_slug | |
| 474 | + { :name => name, :url => "#{slug}.org", :slug => slug, :environment_id => 1} | |
| 475 | + end | |
| 476 | + | |
| 471 | 477 | end | ... | ... |