diff --git a/spec/features/pages/summary_spec.rb b/spec/features/pages/summary_spec.rb index b199cf134..05ae0bd24 100644 --- a/spec/features/pages/summary_spec.rb +++ b/spec/features/pages/summary_spec.rb @@ -41,7 +41,7 @@ end scenario 'I expect to see my answers' do - expect(page).not_to have_content 'Probate case' + expect(page).to have_no_content 'Probate case' expect(page).to have_content 'Name of deceasedFooChange' expect(page).to have_content "Date of death#{(Time.zone.today - 1.month).strftime(Date::DATE_FORMATS[:default])}Change" end @@ -57,8 +57,8 @@ scenario 'I do not expect to see the probate sub headers' do expect(page).to have_content 'Probate case' - expect(page).not_to have_content 'Name of deceased' - expect(page).not_to have_content 'Date of death' + expect(page).to have_no_content 'Name of deceased' + expect(page).to have_no_content 'Date of death' end end