Skip to content
rubytester edited this page Oct 2, 2013 · 6 revisions

The Watirmark Model Factory allows you to create new Models

An example of how factory works:

class SingleDonorModel < Watirmark::Model::Factory
  keywords SingleDonorModelView.keywords
  traits :donor_address
  model_type Donor         
  defaults do
      first_name {"John"}
      last_name  {"Smith"}
  end
end
Clone this wiki locally