-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82ff545
commit d3953b4
Showing
9 changed files
with
76 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,6 +165,12 @@ def initialize(api_data) | |
Call the Teaching Regulation Agency (TRA) on 0207 593 5393 for more information. | ||
DESCRIPTION | ||
}, | ||
"G1" => { | ||
title: "Possible match on the children’s barred list", | ||
description: <<~DESCRIPTION.chomp | ||
Email the Disclosure and Barring Service (DBS) at [[email protected]](mailto:[email protected]) to check if this person is allowed to work with children. | ||
DESCRIPTION | ||
}, | ||
"T1" => { | ||
title: "Prohibition order", | ||
description: <<~DESCRIPTION.chomp | ||
|
@@ -229,6 +235,10 @@ def title | |
SANCTIONS[code][:title] if SANCTIONS[code] | ||
end | ||
|
||
def possible_match_on_childrens_barred_list? | ||
code == "G3" | ||
end | ||
|
||
def guilty_but_not_prohibited? | ||
code == "T6" | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,11 +29,12 @@ | |
subject(:description) { sanction.description } | ||
|
||
context 'when type exists in SANCTIONS' do | ||
let(:code) { "A13" } | ||
let(:code) { "G1" } | ||
|
||
it "returns the description as markdown" do | ||
expect(description) | ||
.to include('Suspended by the General Teaching Council for England.') | ||
.to eq('Email the Disclosure and Barring Service (DBS) at [[email protected]](mailto:[email protected]) ' \ | ||
'to check if this person is allowed to work with children.') | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters