Skip to content

Commit

Permalink
Merge pull request #230 from ministryofjustice/fix-et-apps
Browse files Browse the repository at this point in the history
Set probate to false if ET claim number completed
  • Loading branch information
colinbruce authored Oct 6, 2016
2 parents a28e711 + acf3e1e commit 06806fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/models/forms/claim/et.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class Et < Forms::Base

def export_params
{
case_number: identifier
case_number: identifier,
probate: false
}
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/summaries/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ table.summary
span.visuallyhidden
| &nbsp;
=t('date_of_death', scope: 'summary.labels').downcase
-else
-elsif !@summary.et?
tr
th scope="row" =t('probate', scope: 'summary.labels')
td =t("probate_case_#{@summary.probate}", scope: 'summary')
Expand Down
4 changes: 2 additions & 2 deletions spec/models/forms/claim/et_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

subject { form.export }

it 'returns hash with case_number set' do
is_expected.to eql(case_number: identifier)
it 'returns hash with case_number set and probate set to false' do
is_expected.to eql(case_number: identifier, probate: false)
end
end
end

0 comments on commit 06806fc

Please sign in to comment.