Skip to content

Commit

Permalink
Set correct contention type when creating contention (#235)
Browse files Browse the repository at this point in the history
* contention_type

* fixed test
  • Loading branch information
Sjones352 authored Sep 24, 2019
1 parent 94c4d59 commit 5c34ab8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/vbms/requests/create_contentions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def soap_doc

actionableItem: "true",
medical: "true",
typeCode: "REP",
typeCode: contention[:contention_type].present? ? contention[:contention_type] : "REP",
workingContention: "YES",

awaitingResponse: "unused. but required.",
Expand Down
4 changes: 2 additions & 2 deletions spec/requests/create_contentions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
contentions: [
{ description: "Billy One" },
{ description: "Billy Two" },
{ description: "Billy Three", original_contention_ids: [1, 2] }
{ description: "Billy Three", original_contention_ids: [1, 2], contention_type: "HLR" }
],
claim_date: 20.days.ago.to_date
)
Expand Down Expand Up @@ -51,7 +51,7 @@
contentions: [
{ description: "Billy One" },
{ description: "Billy Two" },
{ description: "Billy Three", original_contention_ids: [1, 2] }
{ description: "Billy Three", original_contention_ids: [1, 2], contention_type: "HLR" }
],
claim_date: 20.days.ago.to_date,
v5: true
Expand Down

0 comments on commit 5c34ab8

Please sign in to comment.