Sha256: 8e70694c65ff557616cb7f60dbe260f85aba1df1f18a3d375a0749713d14c391
Contents?: true
Size: 595 Bytes
Versions: 3
Compression:
Stored size: 595 Bytes
Contents
module DataModel # test fixtures for boolean type module Fixtures::Boolean extend self include Fixtures # a simple boolean example # @return [Example] the example def simple Example.new( [:boolean], variants: { true: true, false: false, string: ["true", true], missing: nil }, ) end # a boolean example that is optional # @return [Example] the example def optional Example.new( [:boolean, { optional: true }], variants: { true: true, false: false, string: "true", missing: nil }, ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
data_model-0.6.1 | lib/data_model/fixtures/boolean.rb |
data_model-0.6.0 | lib/data_model/fixtures/boolean.rb |
data_model-0.5.0 | lib/data_model/fixtures/boolean.rb |