discourse/spec/fabricators/email_log_fabricator.rb
railsaholic 34bba737ff Refactor SessionController#create, reduce complexity.
Don't compromise readablity
2013-11-15 22:09:03 +05:30

5 lines
125 B
Ruby

Fabricator(:email_log) do
user
to_address { sequence(:address) { |i| "blah#{i}@example.com" } }
email_type :invite
end