Sha256: 2c78689c0e7fc063f03a85913c5c30a607342664fc3bf7947673b2347ecb9352

Contents?: true

Size: 545 Bytes

Versions: 1

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

module Archangel
  module TestingSupport
    ##
    # Fill in form helpers for testing
    #
    # Does not submit the form
    #
    module FillInFormHelpers
      def fill_in_password_with(password = "", confirm_password = "")
        fill_in "Password", with: password, match: :prefer_exact
        fill_in "Confirm Password", with: confirm_password, match: :prefer_exact
      end
    end
  end
end

RSpec.configure do |config|
  config.include Archangel::TestingSupport::FillInFormHelpers, type: :feature
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 lib/archangel/testing_support/helpers/fill_in_form_helpers.rb