Commit 04ed091fcd1dfc15a42db6d0fdf8511cb42bdb0c
1 parent
faeba294
Exists in
master
and in
27 other branches
Provide default email for test environments
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
test/factories.rb
... | ... | @@ -174,7 +174,11 @@ module Noosfero::Factory |
174 | 174 | ############################################### |
175 | 175 | |
176 | 176 | def defaults_for_environment |
177 | - { :name => 'Environment ' + factory_num_seq.to_s } | |
177 | + seq = factory_num_seq | |
178 | + { | |
179 | + :name => "Environment %d" % seq, | |
180 | + :contact_email => "environment%d@example.com" % seq | |
181 | + } | |
178 | 182 | end |
179 | 183 | |
180 | 184 | ############################################### | ... | ... |