<commit_before>require 'spec_helper'

describe 'Multiple assemblies with same assembly_id in an estimate (awaiting quote)' do
  it 'should have an add assembly button in the estimate assemblies section'
  it 'should have a remove assembly button in the estimate assemblies section'
  it 'should allow duplicate assemblies in an estimate, and allow the user to name it'
  it 'should have estimate components reference an estimate assembly, to ensure updates to estimate component go to correct estimate assembly'
  it 'should make sure that updates to an estimate assembly component does not update the duplicate'
  it 'should make sure that updates to an estimate assembly component updates itself'
end

describe "Taxability flag by Job Type and Component Type" do
  it 'should have a new taxability table (foreign key pointers to job type and component type)'
  it 'should allow the user to specify which component types are taxable for each job type (yes or no flag)'
  it 'should specify the tax rate for a component by the taxable table flag and the state tax rate'
  it 'should allow the user to override the state tax rate by the value in the taxability table'
  it 'should allow the user to override the tax rate for each estimate component (on same line in estimate as amount and note)'
  it 'should accumulate tax totals at component type, assemby and grand totals'
end

describe 'Miscellaneous items to do - ' do
  context 'important changes' do
    it 'should have should - mass_assignment_sanitizer = strict - see: users_controller_spec/ignore unsafe parameters in create user'
    it "should indicate 'component name already exists' in addition to 'component xxx has already been taken' when adding a component"
    it "should indicate 'estimate component already exists with that assembly and component', in addition to 'component xxx has already been taken' when adding an estimate component"
    it 'should warn the user if hours have not been converted to dollars (at the end of the estimate)'
    it 'should not accumulate hours into the dollar totals column - add an hours totals column?'
    it 'should ensure that required components have amounts entered and give a warning on that line'
    it 'should separate required components from unrequired components and indicate it is required on the form and show'
    it 'should let users specify system minimum and maximum markup percent (10 max now)'
    it 'should only total $ amounts in totals'
    it 'should warn if there are unconverted hours'
    it 'should show dollars or hours on input fields???'
    it 'should not update, show or accumulate unchecked assemblies'
    it 'should not allow assembly components to be required if the component is not editable.'
  end
  context 'important documentation' do<commit_msg>update to do specs<commit_after>require 'spec_helper'

describe 'Multiple assemblies with same assembly_id in an estimate (awaiting quote)' do
  it 'should have an add assembly button in the estimate assemblies section'
  it 'should have a remove assembly button in the estimate assemblies section'
  it 'should allow duplicate assemblies in an estimate, and allow the user to name it'
  it 'should have estimate components reference an estimate assembly, to ensure updates to estimate component go to correct estimate assembly'
  it 'should make sure that updates to an estimate assembly component does not update the duplicate'
  it 'should make sure that updates to an estimate assembly component updates itself'
end

describe "Taxability flag by Job Type and Component Type" do
  it 'should have a new taxability table (foreign key pointers to job type and component type)'
  it 'should allow the user to specify which component types are taxable for each job type (yes or no flag)'
  it 'should specify the tax rate for a component by the taxable table flag and the state tax rate'
  it 'should allow the user to override the state tax rate by the value in the taxability table'
  it 'should allow the user to override the tax rate for each estimate component (on same line in estimate as amount and note)'
  it 'should accumulate tax totals at component type, assemby and grand totals'
end

describe 'Miscellaneous items to do - ' do
  context 'important changes' do
    it 'should have should - mass_assignment_sanitizer = strict - see: users_controller_spec/ignore unsafe parameters in create user'
    it "should indicate 'component name already exists' in addition to 'component xxx has already been taken' when adding a component"
    it "should indicate 'estimate component already exists with that assembly and component', in addition to 'component xxx has already been taken' when adding an estimate component"
    it 'should warn the user if hours have not been converted to dollars (at the end of the estimate)'
    it 'should not accumulate hours into the dollar totals column - add an hours totals column?'
    it 'should let users specify system minimum and maximum markup percent (10 max now)'
    it 'should only total $ amounts in totals'
    it 'should warn if there are unconverted hours'
    it 'should show dollars or hours on input fields???'
    it 'should not update, show or accumulate unchecked assemblies'
    it 'should not allow assembly components to be required if the component is not editable.'
  end
  context 'important documentation' do
{'fraction_non_alphanumeric': 0.03760938372742506, 'fraction_numerical': 0.0007447402718301992, 'mean_word_length': 4.329365079365079, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6478072', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1204, 'n_words': 820}