<commit_before>require 'spec_helper'

describe 'basic records' do
  let(:basic_record_list) {
    [
      NetSuite::Records::Currency,
      NetSuite::Records::Location,
      NetSuite::Records::JobStatus,
      NetSuite::Records::TimeBill,
      NetSuite::Records::Customer,
      NetSuite::Records::Invoice,
      NetSuite::Records::PayrollItem,
      NetSuite::Records::Opportunity,
      NetSuite::Records::VendorCategory,
      NetSuite::Records::VendorBill,
      NetSuite::Records::Deposit,
      NetSuite::Records::RevRecTemplate,
      NetSuite::Records::RevRecSchedule,
      NetSuite::Records::JournalEntry,
      NetSuite::Records::Classification,
      NetSuite::Records::SalesOrder,
      NetSuite::Records::CustomerDeposit,
      NetSuite::Records::NonInventoryPurchaseItem,
      NetSuite::Records::NonInventoryResaleItem,
      NetSuite::Records::TaxGroup,
      NetSuite::Records::Folder,
      NetSuite::Records::CustomerCategory,
      NetSuite::Records::File,
      NetSuite::Records::TransferOrder,
      NetSuite::Records::Partner,
      NetSuite::Records::PurchaseOrder,
      NetSuite::Records::ItemReceipt,
      NetSuite::Records::GiftCertificate,
      NetSuite::Records::ContactRole,
      NetSuite::Records::PaymentItem,
    ]
  }

  it 'can be initialized, has fields, and can be converted into a record' do
    basic_record_list.each do |record_class|
      record_instance = record_class.new

      # most records have a
      expect(record_class.fields.size).to be > 0<commit_msg>Adding credit memo to basic spec<commit_after>require 'spec_helper'

describe 'basic records' do
  let(:basic_record_list) {
    [
      NetSuite::Records::Currency,
      NetSuite::Records::Location,
      NetSuite::Records::JobStatus,
      NetSuite::Records::TimeBill,
      NetSuite::Records::Customer,
      NetSuite::Records::Invoice,
      NetSuite::Records::PayrollItem,
      NetSuite::Records::Opportunity,
      NetSuite::Records::VendorCategory,
      NetSuite::Records::VendorBill,
      NetSuite::Records::Deposit,
      NetSuite::Records::RevRecTemplate,
      NetSuite::Records::RevRecSchedule,
      NetSuite::Records::JournalEntry,
      NetSuite::Records::Classification,
      NetSuite::Records::SalesOrder,
      NetSuite::Records::CustomerDeposit,
      NetSuite::Records::NonInventoryPurchaseItem,
      NetSuite::Records::NonInventoryResaleItem,
      NetSuite::Records::TaxGroup,
      NetSuite::Records::Folder,
      NetSuite::Records::CustomerCategory,
      NetSuite::Records::File,
      NetSuite::Records::TransferOrder,
      NetSuite::Records::Partner,
      NetSuite::Records::PurchaseOrder,
      NetSuite::Records::ItemReceipt,
      NetSuite::Records::GiftCertificate,
      NetSuite::Records::ContactRole,
      NetSuite::Records::PaymentItem,
      NetSuite::Records::CreditMemo,
    ]
  }

  it 'can be initialized, has fields, and can be converted into a record' do
    basic_record_list.each do |record_class|
      record_instance = record_class.new

      # most records have a
      expect(record_class.fields.size).to be > 0
{'fraction_non_alphanumeric': 0.11835278858625162, 'fraction_numerical': 0.0006485084306095979, 'mean_word_length': 4.150250417362271, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '812991', 'n_tokens_mistral': 883, 'n_tokens_neox': 864, 'n_words': 131}