Module: Fixtures::Boolean
- Extended by:
- Boolean
- Includes:
- Fixtures
- Included in:
- Boolean
- Defined in:
- lib/data_model/fixtures/boolean.rb
Overview
test fixtures for boolean type
Instance Method Summary collapse
-
#optional ⇒ Example
a boolean example that is optional.
-
#simple ⇒ Example
a simple boolean example.
Instance Method Details
#optional ⇒ Example
a boolean example that is optional
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/data_model/fixtures/boolean.rb', line 23 def optional Example.new( [:boolean, { optional: true }], variants: { true: true, false: false, string: "true", missing: nil }, ) end |
#simple ⇒ Example
a simple boolean example
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/data_model/fixtures/boolean.rb', line 9 def simple Example.new( [:boolean], variants: { true: true, false: false, string: ["true", true], missing: nil }, ) end |