def file_blob_id(path)
    file_path = Rails.root.join('test/fixtures'.freeze).join(path)
    blob_contents = File.binread file_path

    # This needs to be kept in sync with blob_model.rb.
    Base64.urlsafe_encode64(Digest::SHA256.digest(blob_contents)).inspect
  end
def file_blob_id(path)
    file_path = Rails.root.join('test/fixtures'.freeze).join(path)
    blob_contents = File.binread file_path

    # This needs to be kept in sync with blob_model.rb.
    Base64.urlsafe_encode64(Digest::SHA256.digest(blob_contents)).inspect
  end
Computes the ID assigned to a blob.

 @param [String] path the path of the file whose contents is used in the
   fixture, relative to the Rails application's test/fixtures directory
 @return [String] the ID used to represent the blob contents