<commit_before>require 'spec_helper'

describe "Zohax::Lead" do
  it "has a lead ID" do
    lead = Zohax::Lead.new({ "LEADID" => "1234" })
    lead.lead_id.should == "1234"
  end

  it "has a lead owner" do
    lead = Zohax::Lead.new({ "Lead Owner" => "<NAME>" })
    lead.lead_owner.should == "<NAME>"
  end

  it "has a company" do
    lead = Zohax::Lead.new({ "Company" => "EI" })
    lead.company.should == "EI"
  end

  it "has a first name" do
    lead = Zohax::Lead.new({ "First Name" => "John" })
    lead.first_name.should == "John"
  end

  it "has a last name" do
    lead = Zohax::Lead.new({ "Last Name" => "Doe" })
    lead.last_name.should == "Doe"
  end

  it "has a full name" do
    lead = Zohax::Lead.new({ "First Name" => "John", "Last Name" => "Doe" })
    lead.full_name.should == "<NAME>"<commit_msg>Add tests for the getters on the fields I added.<commit_after>require 'spec_helper'

describe "Zohax::Lead" do
  it "has a lead ID" do
    lead = Zohax::Lead.new({ "LEADID" => "1234" })
    lead.lead_id.should == "1234"
  end

  it "has a lead owner" do
    lead = Zohax::Lead.new({ "Lead Owner" => "<NAME>" })
    lead.lead_owner.should == "<NAME>"
  end

  it "has a company" do
    lead = Zohax::Lead.new({ "Company" => "EI" })
    lead.company.should == "EI"
  end

  it "has a first name" do
    lead = Zohax::Lead.new({ "First Name" => "John" })
    lead.first_name.should == "John"
  end

  it "has a last name" do
    lead = Zohax::Lead.new({ "Last Name" => "Doe" })
    lead.last_name.should == "Doe"
  end

  it "has an email" do
    lead = Zohax::Lead.new({ "Email" => "<EMAIL>" })
    lead.email.should == "<EMAIL>"
  end

  it "has a phone" do
    lead = Zohax::Lead.new({ "Phone" => "1234567" })
    lead.phone.should == "1234567"
  end

  it "has a fax" do
    lead = Zohax::Lead.new({ "Fax" => "1234567" })
    lead.fax.should == "1234567"
  end

  it "has a mobile" do
    lead = Zohax::Lead.new({ "Mobile" => "1234567" })
    lead.mobile.should == "1234567"
  end

  it "has a full name" do
    lead = Zohax::Lead.new({ "First Name" => "John", "Last Name" => "Doe" })
    lead.full_name.should == "<NAME>"
{'fraction_non_alphanumeric': 0.18694638694638693, 'fraction_numerical': 0.02703962703962704, 'mean_word_length': 2.8947368421052633, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3590571', 'n_tokens_mistral': 886, 'n_tokens_neox': 819, 'n_words': 232}