Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
susannasiebert committed Sep 12, 2019
1 parent 7ffa79d commit c1bcf4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/controllers/datatables_spec.rb
Original file line number Diff line number Diff line change
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 c1bcf4d

Please sign in to comment.