<commit_before>require "spec_helper"

describe VmHelper::TextualSummary do
  it "#textual_server" do
    server  = FactoryGirl.create(:miq_server)
    @record = FactoryGirl.create(:vm_vmware, :miq_server => server)
    expect(helper.textual_server).to eq("#{server.name} [#{server.id}]")
  end
end<commit_msg>We don't actually need to save these, use :build instead<commit_after>require "spec_helper"

describe VmHelper::TextualSummary do
  it "#textual_server" do
    server  = FactoryGirl.build(:miq_server, :id => 99999)
    @record = FactoryGirl.build(:vm_vmware, :miq_server => server)
    expect(helper.textual_server).to eq("#{server.name} [#{server.id}]")
  end
end
{'fraction_non_alphanumeric': 0.13818722139673106, 'fraction_numerical': 0.007429420505200594, 'mean_word_length': 5.543689320388349, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '7142006', 'n_tokens_mistral': 238, 'n_tokens_neox': 226, 'n_words': 48}