Remove dead specs helper method

I found it while reviewing
https://github.com/openfoodfoundation/openfoodnetwork/pull/5718#discussion_r451390809.
This commit is contained in:
Pau Perez
2020-07-08 10:59:13 +02:00
parent 312e78ba61
commit a1e8c8ad03

View File

@@ -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