We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02a2a6c commit d986fe2Copy full SHA for d986fe2
spec/components/app_patient_summary_component_spec.rb
@@ -19,6 +19,21 @@
19
20
it { should have_content("SELDON, Hari") }
21
22
+ it { should have_content("NHS number") }
23
+
24
+ context "when patient has an NHS number" do
25
+ before { patient.update(nhs_number: "9993425389") }
26
27
+ it { should have_content("999 342 5389") }
28
+ it { should_not have_link("Add the child's NHS number") }
29
+ end
30
31
+ context "when patient does not have an NHS number" do
32
+ before { patient.update(nhs_number: nil) }
33
34
+ it { should have_link("Add the child's NHS number") }
35
36
37
it { should have_content("Date of birth") }
38
it { should have_content("1 January 2000") }
39
0 commit comments