From 0fb067e488595573c0d56fc974cf1b8e1a7a223f Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Sat, 31 Aug 2024 22:40:36 -0700 Subject: [PATCH] use have_content instead --- spec/system/profile_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/profile_spec.rb b/spec/system/profile_spec.rb index b3f7dc95dd070b..1cd3e62bc02f35 100644 --- a/spec/system/profile_spec.rb +++ b/spec/system/profile_spec.rb @@ -34,11 +34,11 @@ it 'Can have custom account_css set' do visit account_path('chupacabra') - expect(subject).to include('background-color: red !important') + expect(subject).to have_content('background-color: red !important') expect(subject).to have_xpath('//*[@id="account-css"]') visit account_path('alice') - expect(subject).to_not include('background-color: red !important') + expect(subject).to have_no_content('background-color: red !important') expect(subject).to have_no_xpath('//*[@id="account-css"]') end end