-
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
fa5eec3
commit a57403e
Showing
7 changed files
with
23 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,12 +165,6 @@ 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 | ||
|
@@ -235,10 +229,6 @@ 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,12 +29,11 @@ | |
subject(:description) { sanction.description } | ||
|
||
context 'when type exists in SANCTIONS' do | ||
let(:code) { "G1" } | ||
let(:code) { "A13" } | ||
|
||
it "returns the description as markdown" do | ||
expect(description) | ||
.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.') | ||
.to include('Suspended by the General Teaching Council for England.') | ||
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