# File lib/rspec/rails/matchers/be_a_new.rb, line 29
  def attributes_match?(actual)
    attributes.stringify_keys.all? do |key, value|
      actual.attributes[key].eql?(value)
    end
  end