require 'bundler'
Bundler.setup

require 'rspec'
require 'jschematic'

RSpec::Matchers.define :accept do |instance_value|
  match do |validator|
    begin
      validator.accepts?(instance_value)
    rescue Jschematic::ValidationError
      false
    end
  end
end

class Parent
	include Jschematic::Composite

	def initialize(opts)
		self.id = opts["id"]
	end
end

require 'bundler'
Bundler.setup

require 'rspec'
require 'jschematic'

RSpec::Matchers.define :accept do |instance_value|
  match do |validator|
    begin
      validator.accepts?(instance_value)
    rescue Jschematic::ValidationError
      false
    end
  end
end

module Jschematic
  class Parent
    include Jschematic::Composite

    def initialize(opts)
      self.id = opts["id"]
    end
  end

  class Child
    include Jschematic::Element

    def accepts?(instance)
      !!instance
    end
  end
end

Add Child class for testing, fix formatting
Add Child class for testing, fix formatting
