<commit_before>require 'rails_helper'

describe "capital_projects/_builder_form.html.haml", :type => :view do
  it 'fields' do
    assign(:builder_proxy, BuilderProxy.new)
    assign(:asset_types, AssetType.all)
    assign(:fiscal_years, [2010])
    assign(:organization, create(:organization))
    assign(:organization_list,[1,2])
    render

    expect(rendered).to have_field('builder_proxy_organization_id')
    expect(rendered).to have_xpath('//input[@name="builder_proxy[asset_types][]"]')
    expect(rendered).to have_field('builder_proxy_start_fy')
  end
end<commit_msg>update test for JS changes to partial<commit_after>require 'rails_helper'

describe "capital_projects/_builder_form.html.haml", :type => :view do
  it 'fields' do
    assign(:builder_proxy, BuilderProxy.new)
    assign(:asset_types, AssetType.all)
    assign(:fiscal_years, [['FY 10-11', 2010], ['FY 11-12', 2012]])
    assign(:organization, create(:organization))
    assign(:organization_list,[1,2])
    render

    expect(rendered).to have_field('builder_proxy_organization_id')
    expect(rendered).to have_xpath('//input[@name="builder_proxy[asset_types][]"]')
    expect(rendered).to have_field('builder_proxy_start_fy')
  end
end
{'fraction_non_alphanumeric': 0.14250411861614498, 'fraction_numerical': 0.019769357495881382, 'mean_word_length': 5.982758620689655, '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': '3869884', 'n_tokens_mistral': 426, 'n_tokens_neox': 379, 'n_words': 66}