Sha256: 86f1fc6b5825c7df8d2e931eebf07e9d546948fc16461b7a55f4012fca40b679
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
# frozen_string_literal: true module Spree module TestingSupport module CapybaraHelpers def sign_in_as!(user) visit spree.login_path within '#new_spree_user' do fill_in 'Email', with: user.email fill_in 'Password', with: user.password end click_button 'Login' end end end end RSpec.configure do |config| config.include Spree::TestingSupport::CapybaraHelpers, type: :feature end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_tax_cloud-1.0.0 | spec/support/capybara.rb |