diff --git a/app/const/constants.rb b/app/const/constants.rb index 20f87892..9f32fe27 100644 --- a/app/const/constants.rb +++ b/app/const/constants.rb @@ -17,7 +17,7 @@ module Constants EVIDENCE_DIRECTIONS = [:Supports, 'Does Not Support', 'N/A'] - VARIANT_ORIGINS = ['Somatic Mutation', 'Germline Mutation', 'Germline Polymorphism', 'Unknown', 'N/A', 'Germline or Somatic'] + VARIANT_ORIGINS = ['Somatic', 'Rare Germline', 'Common Germline', 'Unknown', 'N/A', 'Germline or Somatic'] CLINICAL_SIGNIFICANCES = [ 'Sensitivity/Response', diff --git a/spec/controllers/datatables_spec.rb b/spec/controllers/datatables_spec.rb index 2c3b1357..46b48bb1 100644 --- a/spec/controllers/datatables_spec.rb +++ b/spec/controllers/datatables_spec.rb @@ -56,10 +56,10 @@ end it 'should filter on variant_origin' do - evidence_item_A = Fabricate(:evidence_item, status: 'accepted', variant_origin: 'Somatic Mutation') - evidence_item_B = Fabricate(:evidence_item, status: 'accepted', variant_origin: 'Germline Mutation') + evidence_item_A = Fabricate(:evidence_item, status: 'accepted', variant_origin: 'Somatic') + evidence_item_B = Fabricate(:evidence_item, status: 'accepted', variant_origin: 'Rare Germline') - get :datatable, params: { filter: {variant_origin: 'Somatic Mutation'} } + get :datatable, params: { filter: {variant_origin: 'Somatic'} } result = JSON.parse(response.body) expect(result['result'].length).to eq 1