Skip to content

Commit

Permalink
Merge c1bcf4d into 9fc70a8
Browse files Browse the repository at this point in the history
  • Loading branch information
susannasiebert committed Sep 12, 2019
2 parents 9fc70a8 + c1bcf4d commit 20804ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/const/constants.rb
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions spec/controllers/datatables_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 20804ba

Please sign in to comment.