Sha256: c78f1c87c34fcdc3d76587dca56ca5893853890bccb81e409bf5b5fef98bbf65

Contents?: true

Size: 413 Bytes

Versions: 6

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module Capybara
  module ActiveAdmin
    module Actions
      module Form
        def click_submit(value, options = {})
          selector = form_submit_selector(value)
          find(selector, options).click
        end

        def fill_in_file(label, options = {})
          path = options.delete(:with)
          attach_file(label, path)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
capybara_active_admin-0.3.3 lib/capybara/active_admin/actions/form.rb
capybara_active_admin-0.3.2 lib/capybara/active_admin/actions/form.rb
capybara_active_admin-0.3.1 lib/capybara/active_admin/actions/form.rb
capybara_active_admin-0.3.0 lib/capybara/active_admin/actions/form.rb
capybara_active_admin-0.2.1 lib/capybara/active_admin/actions/form.rb
capybara_active_admin-0.2.0 lib/capybara/active_admin/actions/form.rb