Sha256: 0152c831ff16cdc4024c1246a19ccd4149c8a77afdeae5f594242a0adf54f10d
Contents?: true
Size: 788 Bytes
Versions: 2
Compression:
Stored size: 788 Bytes
Contents
FactoryGirl.define do factory :variant, class: Strain::Variant do schema_hash = { "type": "object", "properties": { "summary": {"type": "string"}, "main": {"type": "string"} }, "additionalProperties": false } name "test" schema schema_hash trait :nested_schema do schema_hash = { "type": "object", "additionalProperties": false, "properties": { "summary": {"type": "string"}, "main": { "type": "object", "additionalProperties": false, "properties": { "section_title": {"type": "string"}, "section_text": {"type": "string"} } } } } schema schema_hash end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
strain-0.0.2 | spec/factories/strain_variants.rb |
strain-0.0.1 | spec/factories/strain_variants.rb |