module ActiveMocker
module Mock
  class RecordNotFound < StandardError
  end

  class ReservedFieldError < StandardError
  end

  class IdError < StandardError
  end

  class FileTypeMismatchError < StandardError
  end

  class RejectedParams < Exception
  end

  class Unimplemented < Exception
  end

  class IdNotNumber < Exception
  end

end
end

module ActiveMocker
module Mock
  class RecordNotFound < StandardError
  end

  class ReservedFieldError < StandardError
  end

  class IdError < StandardError
  end

  class FileTypeMismatchError < StandardError
  end

  # Raised when unknown attributes are supplied via mass assignment.
  class UnknownAttributeError < NoMethodError

    attr_reader :record, :attribute

    def initialize(record, attribute)
      @record = record
      @attribute = attribute.to_s
      super("unknown attribute: #{attribute}")
    end

  end

  class Unimplemented < Exception
  end

  class IdNotNumber < Exception
  end

  class Error < Exception
  end

end
end

Replace RejectedParams and use UnknownAttributesError to follow active record
Replace RejectedParams and use UnknownAttributesError to follow active record