Method: Fixtures::Hash#optional_contact
- Defined in:
- lib/data_model/fixtures/hash.rb
#optional_contact ⇒ Example
hash contact example that is optional
50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/data_model/fixtures/hash.rb', line 50 def optional_contact Example.new( [:hash, { optional: true }, [:first_name, :string], [:last_name, :string, { optional: true }], [:email, :string]], variants: { valid: example_contact, missing: nil }, ) end |