class Shoulda::Matchers::Error

def self.create(attributes)

def self.create(attributes)
  allocate.tap do |error|
    attributes.each do |name, value|
      error.__send__("#{name}=", value)
    end
    error.__send__(:initialize)
  end
end