From a1e8c8ad030f26d7db272214de6f8343bf85befd Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Wed, 8 Jul 2020 10:59:13 +0200 Subject: [PATCH] Remove dead specs helper method I found it while reviewing https://github.com/openfoodfoundation/openfoodnetwork/pull/5718#discussion_r451390809. --- spec/support/request/authentication_workflow.rb | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/spec/support/request/authentication_workflow.rb b/spec/support/request/authentication_workflow.rb index e07327d3e7..c06baf8eac 100644 --- a/spec/support/request/authentication_workflow.rb +++ b/spec/support/request/authentication_workflow.rb @@ -46,23 +46,6 @@ module AuthenticationWorkflow # click_button 'Login' end - def login_to_consumer_section - user_role = Spree::Role.find_or_create_by!(name: 'user') - user = create_enterprise_user( - email: 'someone@ofn.org', - password: 'passw0rd', - password_confirmation: 'passw0rd', - remember_me: false, - persistence_token: 'pass', - login: 'someone@ofn.org' - ) - - user.spree_roles << user_role - - visit spree.login_path - fill_in_and_submit_login_form user - end - def fill_in_and_submit_login_form(user) fill_in "email", with: user.email fill_in "password", with: user.password