Sha256: 79c153faba4ee272dc5f949d6ed02fe9a68cde6a95f7fc3d8bc2133c1febb1d3
Contents?: true
Size: 639 Bytes
Versions: 4
Compression:
Stored size: 639 Bytes
Contents
# frozen_string_literal # # Helpers for automating sign-in and out during tests # Automatically generated by the orthodox gem (https://github.com/katanacode/orthodox) # (c) Copyright 2019 Katana Code Ltd. All Rights Reserved. # module AuthenticationHelpers def sign_in(record, **options) type = record.class.model_name.singular visit(public_send("new_#{type.pluralize}_session_path")) fill_in :"#{type}_session_email", with: record.email fill_in :"#{type}_session_password", with: record.password click_button "Sign in" end end RSpec.configure do |config| config.include(AuthenticationHelpers, type: :system) end
Version data entries
4 entries across 4 versions & 1 rubygems