Skip to content

Commit

Permalink
Remove unused seen_cookie_message spec (#3244)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerldixon authored Jul 31, 2024
1 parent 612b7be commit 074bb8a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions spec/requests/cookie_banner_spec.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
require 'rails_helper'

describe "Displaying the cookie banner", type: :request do
let(:cookie_name) { 'seen_cookie_message' }
let(:banner_contents) { /Cookies on the Get school experience service/ }

context 'on the first visit (when the seen_cookie_message cookie is absent)' do
specify "the cookie should not be set to 'yes'" do
expect(cookies[cookie_name]).to be_nil
get candidates_root_path
expect(cookies[cookie_name]).to be_nil
end

specify 'the page should display the cookie banner' do
get candidates_root_path
expect(response.body).to match(banner_contents)
Expand Down

0 comments on commit 074bb8a

Please sign in to comment.