require 'spec_helper'

class Model
  include ActiveModel::Validations

  attr_accessor :attributes

  def initialize(attributes = {})
    @attributes = attributes
  end

  def read_attribute_for_validation(key)
    @attributes[key]
  end

  def email
    @attributes[:email]
  end

  def email=(email)
    @attributes[:email] = email
  end
end

class Person < Model
  validates :email, email: true
end

class Model
  include ActiveModel::Validations

  attr_accessor :attributes

  def initialize(attributes = {})
    @attributes = attributes
  end

  def read_attribute_for_validation(key)
    @attributes[key]
  end

  def email
    @attributes[:email]
  end

  def email=(email)
    @attributes[:email] = email
  end
end

class Person < Model
  validates :email, email: true
end

Remove circular require in spec support file
Remove circular require in spec support file
