Sha256: a5d4b5b196717d9b920a6e0ceea6e50f967a2ca47560194aa137d6e06ad0023c

Contents?: true

Size: 337 Bytes

Versions: 8

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

module Archangel
  module TestingSupport
    ##
    # Form helpers for testing
    #
    module FormHelpers
      def submit_form
        find("input[name='commit']").click
      end
    end
  end
end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
archangel-0.3.0 lib/archangel/testing_support/helpers/form_helpers.rb
archangel-0.0.8 lib/archangel/testing_support/helpers/form_helpers.rb
archangel-0.0.7 lib/archangel/testing_support/helpers/form_helpers.rb
archangel-0.0.6 lib/archangel/testing_support/helpers/form_helpers.rb
archangel-0.0.5 lib/archangel/testing_support/helpers/form_helpers.rb
archangel-0.0.4 lib/archangel/testing_support/helpers/form_helpers.rb
archangel-0.0.3 lib/archangel/testing_support/helpers/form_helpers.rb
archangel-0.0.2 lib/archangel/testing_support/helpers/form_helpers.rb