Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
quorauk committed Aug 25, 2023
1 parent 5eb71d7 commit 12b33e1
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions spec/dummy-app/spec/features/sign_up_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
let(:email) { Faker::Internet.email }
let(:password) { Faker::Internet.password }

let!(:user_agent) { 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36' }
let!(:accept_header) { 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' }
# let!(:recognisable_session_values) {{
# recognisable_id: user.id,
# recognisable_type: 'User',
# user_agent: user_agent,
# accept_header: accept_header
# }}

before do
Capybara.current_session.driver.header('User-Agent', user_agent)
Capybara.current_session.driver.header('Accept', accept_header)
end

context 'as a new user' do
it 'creates a devise recognisable session' do
visit '/'
Expand Down

0 comments on commit 12b33e1

Please sign in to comment.