Sha256: 6d1a08a950b70ae1fe019117fb642bc91e2d94d895adbf0498b428d0ed57c8f4
Contents?: true
Size: 583 Bytes
Versions: 3
Compression:
Stored size: 583 Bytes
Contents
require 'spec_helper' RSpec.shared_context 'an entity' do let(:klass) do Class.new JSON::SchemaBuilder::Entity do attribute :test attribute :test_name attribute :test_list, array: true attribute :test_as, as: :testOther def initialize(*args); end end end subject{ klass.new } end RSpec.shared_context 'an entity with a parent' do let(:parent){ OpenStruct.new children: [], required: [] } subject do JSON::SchemaBuilder::Entity.new 'name', title: 'test', parent: parent do schema[:evaluated_block] = true end end end
Version data entries
3 entries across 3 versions & 1 rubygems