Commit 39e82e74ff6d8b5407399dcabd6ada13cc80ba2d
Committed by
Antonio Terceiro
1 parent
72d70670
Exists in
staging
and in
42 other branches
Default values to create events via factory
(ActionItem1255)
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
test/factories.rb
| ... | ... | @@ -189,6 +189,14 @@ module Noosfero::Factory |
| 189 | 189 | end |
| 190 | 190 | |
| 191 | 191 | ############################################### |
| 192 | + # Event | |
| 193 | + ############################################### | |
| 194 | + | |
| 195 | + def defaults_for_event | |
| 196 | + { :name => 'My event ' + factory_num_seq.to_s, :start_date => Date.today } | |
| 197 | + end | |
| 198 | + | |
| 199 | + ############################################### | |
| 192 | 200 | # Blog |
| 193 | 201 | ############################################### |
| 194 | 202 | def create_blog | ... | ... |