Skip to content

Commit

Permalink
Merge pull request #6586 from alphagov/incorrect-figure-in-intestacy
Browse files Browse the repository at this point in the history
Incorrect figure in intestacy
  • Loading branch information
chriswhitehouse-tw authored Oct 24, 2023
2 parents 975b8de + 35428b2 commit c95b6a2
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 9 deletions.
12 changes: 10 additions & 2 deletions app/flows/inherits_someone_dies_without_will_flow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def define
radio :date_of_death? do
option :"before-oct-2014"
option :"oct-2014-feb-2020"
option :"after-feb-2020"
option :"feb-2020-jul-2023"
option :"after-jul-2023"

on_response do |response|
calculator.date_of_death = response
Expand Down Expand Up @@ -118,12 +119,18 @@ def define
else
outcome :outcome_14
end
when "after-feb-2020"
when "feb-2020-jul-2023"
if calculator.children?
outcome :outcome_13
else
outcome :outcome_14
end
when "after-jul-2023"
if calculator.children?
outcome :outcome_15
else
outcome :outcome_14
end
end
elsif calculator.children?
outcome :outcome_2
Expand Down Expand Up @@ -412,6 +419,7 @@ def define
outcome :outcome_12
outcome :outcome_13
outcome :outcome_14
outcome :outcome_15

outcome :outcome_23
outcome :outcome_24
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<% text_for :title do %>
You’ll need to get legal advice to work out the net value of the estate and to find out who will inherit what.
<% end %>

<% govspeak_for :body do %>
You’ll need to [get legal advice](/find-legal-advice/find-legal-adviser) to work out the net value of the estate and to find out who will inherit what.

##If the estate is worth up to £322,000

The husband, wife or civil partner gets all of the estate and is entitled to [apply for probate](/applying-for-probate/apply-for-probate).

If the husband, wife or civil partner died after the deceased, their share will become part of their own estate.

##If the estate is worth over £322,000

The estate will be divided between the husband, wife or civil partner and the children of the deceased.

The husband, wife or civil partner gets:

- up to £322,000 in assets, and half of the rest of the estate
- all of the personal possessions of the deceased

The children of the deceased are entitled to a share of the half of the estate above £322,000.

If any of the children died before the deceased, their children (grandchildren of the deceased) will inherit in their place.

If any of these grandchildren died before the deceased, their children (great-grandchildren of the deceased) will inherit in their place.

If any of these people died after the deceased, their share will become part of their own estate.
<% end %>

<% govspeak_for :next_steps do %>
<%= render partial: 'next_step_links', locals: { next_steps: calculator.next_steps, probate_content: true } %>
<% end %>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
<% options(
"before-oct-2014": "Before 1 October 2014",
"oct-2014-feb-2020": "Between 1 October 2014 and 6 February 2020",
"after-feb-2020": "After 6 February 2020",
"feb-2020-jul-2023": "Between 7 February 2020 and 25 July 2023",
"after-jul-2023": "On or after 26 July 2023"
) %>
25 changes: 19 additions & 6 deletions test/flows/inherits_someone_dies_without_will_flow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ class InheritsSomeoneDiesWithoutWillFlowTest < ActiveSupport::TestCase
should "have a next node of children? for oct-2014-feb-2020" do
assert_next_node :children?, for_response: "oct-2014-feb-2020"
end
should "have a next node of children? for after-feb-2020" do
assert_next_node :children?, for_response: "after-feb-2020"
should "have a next node of children? for feb-2020-jul-2023" do
assert_next_node :children?, for_response: "feb-2020-jul-2023"
end
should "have a next node of children? for after-jul-2023" do
assert_next_node :children?, for_response: "after-jul-2023"
end
end
end
Expand Down Expand Up @@ -149,13 +152,23 @@ class InheritsSomeoneDiesWithoutWillFlowTest < ActiveSupport::TestCase
assert_next_node :outcome_14, for_response: "no"
end

should "have a next node of outcome_13 for a 'yes' response if has partner and region is england-and-wales and deceased died after-feb-2020" do
add_responses date_of_death?: "after-feb-2020"
should "have a next node of outcome_13 for a 'yes' response if has partner and region is england-and-wales and deceased died feb-2020-jul-2023" do
add_responses date_of_death?: "feb-2020-jul-2023"
assert_next_node :outcome_13, for_response: "yes"
end

should "have a next node of outcome_14 for a 'no' response if has partner and region is england-and-wales and deceased died after-feb-2020" do
add_responses date_of_death?: "after-feb-2020"
should "have a next node of outcome_14 for a 'no' response if has partner and region is england-and-wales and deceased died feb-2020-jul-2023" do
add_responses date_of_death?: "feb-2020-jul-2023"
assert_next_node :outcome_14, for_response: "no"
end

should "have a next node of outcome_15 for a 'yes' response if has partner and region is england-and-wales and deceased died after-jul-2023" do
add_responses date_of_death?: "after-jul-2023"
assert_next_node :outcome_15, for_response: "yes"
end

should "have a next node of outcome_14 for a 'no' response if has partner and region is england-and-wales and deceased died after-jul-2023" do
add_responses date_of_death?: "after-jul-2023"
assert_next_node :outcome_14, for_response: "no"
end

Expand Down

0 comments on commit c95b6a2

Please sign in to comment.