Sha256: 9d6c55b22702b628ed07f80ac5bdbbe5aeaac99077bbb6b3f5f695225a36819f

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

module HelperMethods
  def enable_javascript
    Capybara.current_driver = :selenium
    Capybara.default_wait_time = 1
  end

  def send_to(element, key)
    find_field(element).native.send_keys(key)
  end
end

RSpec.configuration.include HelperMethods, :type => :acceptance

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails3-jquery-autocomplete-0.9.0 integration/spec/acceptance/support/helpers.rb
rails3-jquery-autocomplete-0.8.0 integration/spec/acceptance/support/helpers.rb
rails3-jquery-autocomplete-0.7.5 integration/spec/acceptance/support/helpers.rb
rails3-jquery-autocomplete-0.7.4 integration/spec/acceptance/support/helpers.rb
rails3-jquery-autocomplete-0.7.3 integration/spec/acceptance/support/helpers.rb
rails3-jquery-autocomplete-0.7.2 integration/spec/acceptance/support/helpers.rb