class UserWithEmailFormFixture < ActiveForm::Base
  self.main_model = :user
  attributes :name, :age, :gender, required: true

  association :email do
    attribute :address, required: true
  end

  validates :name, length: { in: 6..20 }
  validates :age, numericality: { only_integer: true }
end