You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pipedrive_spec.rb
    path of file: ./repos/chaskiq/spec/controllers/api/v1/hooks
    
    the code of the file until where you have to start completion: require "rails_helper"
include ActiveJob::TestHelper

RSpec.describe Api::V1::Hooks::ProviderController, type: :controller do
  def block_actions(id:, message_data: {}, conversation: nil)
    payload = {}

    {
      "payload" => payload.to_json,
      # "app_key"=> app.key,
      # "provider"=>"pipedrive",
      "id" => id
    }
  end

  def data_for(id:, app:)
    # sent on created
    data = {
      "v" => 1,
      "matches_filters" => { "current" => [] },
      "meta" => { "v" => 1, "action" => "updated", "object" => "person", "id" => 11, "company_id" => 7_468_915, "user_id" => 11_379_745, "host" => "michelson.pipedrive.com", "timestamp" => 1_581_613_434, "timestamp_micro" => 1_581_613_434_223_943, "permitted_user_ids" => [11_379_745], "trans_pending" => false, "is_bulk_update" => false, "pipedrive_service_name" => false, "matches_filters" => { "current" => [] }, "webhook_id" => "136435" },
      "current" => { "id" => 11, "company_id" => 7_468_915, "owner_id" => 11_379_745, "org_id" => nil, "name" => "test users", "first_name" => "test", "last_name" => "users", "open_deals_count" => 0, "related_open_deals_count" => 0, "closed_deals_count" => 0, "related_closed_deals_count" => 0, "participant_open_deals_count" => 0, "participant_closed_deals_count" => 0, "email_messages_count" => 0, "activities_count" => 0, "done_activities_count" => 0, "undone_activities_count" => 0, "reference_activities_count" => 0, "files_count" => 0, "notes_count" => 0, "followers_count" => 1, "won_deals_count" => 0, "related_won_deals_count" => 0, "lost_deals_count" => 0, "related_lost_deals_count" => 0, "active_flag" => true, "phone" => [{ "value" => "", "primary" => true }], "email" => [{ "label" => "work", "value" => "aa@aa.cl", "primary" => true }], "first_char" => "t", "update_time" => "2020-02-13 17:03:54", "add_time" => "2020-02-13 17:03:53", "visible_to" => "3", "google_contact_id" => nil, "picture_id" => nil, "next_activity_date" => nil, "next_activity_time" => nil, "next_activity_id" => nil, "last_activity_id" => nil, "last_activity_date" => nil, "last_incoming_mail_time" => nil, "last_outgoing_mail_time" => nil, "label" => nil, "org_name" => nil, "cc_email" => "michelson@pipedrivemail.com", "owner_name" => "miguel" }, "previous" => { "id" => 11, "company_id" => 7_468_915, "owner_id" => 11_379_745, "org_id" => nil, "name" => "test users", "first_name" => "test", "last_name" => "users", "open_deals_count" => 0, "related_open_deals_count" => 0, "closed_deals_count" => 0, "related_closed_deals_count" => 0, "participant_open_deals_count" => 0, "participant_closed_deals_count" => 0, "email_messages_count" => 0, "activities_count" => 0, "done_activities_count" => 0, "undone_activities_count" => 0, "reference_activities_count" => 0, "files_count" => 0, "notes_count" => 0, "followers_count" => 0, "won_deals_count" => 0, "related_won_deals_count" => 0, "lost_deals_count" => 0, "related_lost_deals_count" => 0, "active_flag" => true, "phone" =
    
  def update_data_for(id:, app:, profile_id:)
    {
      "v" => 1,
      "matches_filters" => { "current" => [] },
      "meta" => {
        "v" => 1,
        "action" => "updated",
        "object" => "person",
        "id" => profile_id,
        "webhook_id" => "136435"
      },
      "current" => { "id" => profile_id, "company_id" => 7_468_915, "owner_id" => 11_379_745, "org_id" => nil, "name" => "test userspopokpok", "first_name" => "test", "last_name" => "userspopokpok", "open_deals_count" => 0, "related_open_deals_count" => 0, "closed_deals_count" => 0, "related_closed_deals_count" => 0, "participant_open_deals_count" => 0, "participant_closed_deals_count" => 0, "email_messages_count" => 0, "activities_count" => 0, "done_activities_count" => 0, "undone_activities_count" => 0, "reference_activities_count" => 0, "files_count" => 0, "notes_count" => 0, "followers_count" => 1, "won_deals_count" => 0, "related_won_deals_count" => 0, "lost_deals_count" => 0, "related_lost_deals_count" => 0, "active_flag" => true, "phone" => [{ "value" => "", "primary" => true }], "email" => [{ "label" => "work", "value" => "aa@aa.cl", "primary" => true }], "first_char" => "t", "update_time" => "2020-02-13 18:16:56", "add_time" => "2020-02-13 17:03:53", "visible_to" => "3", "google_contact_id" => nil, "picture_id" => nil, "next_activity_date" => nil, "next_activity_time" => nil, "next_activity_id" => nil, "last_activity_id" => nil, "last_activity_date" => nil, "last_incoming_mail_time" => nil, "last_outgoing_mail_time" => nil, "label" => nil, "org_name" => nil, "cc_email" => "michelson@pipedrivemail.com" },
      "previous" => { "id" => profile_id, "company_id" => 7_468_915, "owner_id" => 11_379_745, "org_id" => nil, "name" => "test users", "first_name" => "test", "last_name" => "users", "open_deals_count" => 0, "related_open_deals_count" => 0, "closed_deals_count" => 0, "related_closed_deals_count" => 0, "participant_open_deals_count" => 0, "participant_closed_deals_count" => 0, "email_messages_count" => 0, "activities_count" => 0, "done_activities_count" => 0, "undone_activities_count" => 0, "reference_activities_count" => 0, "files_count" => 0, "notes_count" => 0, "followers_count" => 1, "won_deals_count" => 0, "related_won_deals_count" => 0, "lost_deals_count" => 0, "related_lost_deals_count" => 0, "active_flag" => true, "phone" => [{ "value" => "", "primary" => true }], "email" => [{ "label" => "work", "value" => "aa@aa.cl", "primary" => true }], "first_char" => "t", "update_time" => "2020-02-13 17:03:54", "add_time" => "2020-02-13 17:03:53", "visible_to" => "3", "google_contact_id" => nil, "picture_id" => nil, "next_activity_date" => nil, "next_activity_time" => nil, "next_activity_id" => nil, "last_activity_id" => nil, "last_activity_date" => nil, "last_incoming_mail_time" => nil, "last_outgoing_mail_time" => nil, "label" => nil, "org_name" => nil, "cc_email" => "michelson@pipedrivemail.com" },
      "event" => "updated.person",
      "retry" => 0,
      # "app_key"=> app.key,
      # "provider"=>"pipedrive",
      "id" => id
    }
  end