<commit_before>require 'spec_helper'

describe ChargeBookingTemplate do
  context "when new" do
    @template = ChargeBookingTemplate.new

    @template.charge_rate.should == nil
    @template.amount.should == 0.0
    @template.booking_parameters.should == {
                                             "comments"          => nil,
                                             "debit_account_id"  => nil,
                                             "title"             => nil,
                                             "amount"            => BigDecimal("0"),
                                             "credit_account_id" => nil
                                            }
  end<commit_msg>Move test to "it" block in charge_booking_template spec.<commit_after>require 'spec_helper'

describe ChargeBookingTemplate do
  context "when new" do
    it "should build proper record" do
      @template = ChargeBookingTemplate.new

      @template.charge_rate.should == nil
      @template.amount.should == 0.0
      @template.booking_parameters.should == {
                                               "comments"          => nil,
                                               "debit_account_id"  => nil,
                                               "title"             => nil,
                                               "amount"            => BigDecimal("0"),
                                               "credit_account_id" => nil
                                              }
    end
  end
{'fraction_non_alphanumeric': 0.07768924302788845, 'fraction_numerical': 0.00398406374501992, 'mean_word_length': 0.9271099744245525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2224558', 'n_tokens_mistral': 306, 'n_tokens_neox': 293, 'n_words': 67}