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

Instance Method Details

#optionalExample

a boolean example that is optional

Returns:



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

#simpleExample

a simple boolean example

Returns:



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