Skip to content

Commit

Permalink
use have_content instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Sep 1, 2024
1 parent c91a72d commit 0fb067e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/system/profile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0fb067e

Please sign in to comment.