discourse/spec/fabricators/email_change_request_fabricator.rb

9 lines
270 B
Ruby
Raw Normal View History

# frozen_string_literal: true
Fabricator(:email_change_request) do
user
old_email { sequence(:old_email) { |i| "bruce#{i}@wayne.com" } }
new_email { sequence(:new_email) { |i| "super#{i}@man.com" } }
change_state EmailChangeRequest.states[:authorizing_old]
end