Skip to content

getfretless/capybara_select2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capybara Select2

Inpsired by goodwill's capybara-select2, this gem assists in testing forms that uses the select2 select box replacement.

(We needed the gem to work with MiniTest.)

Installation

Add this line to your application's Gemfile, probably in the :test group:

gem 'capybara_select2'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capybara_select2

Usage

Cucumber

In features/support/env.rb

  require 'capybara_select2'
  World(Capybara::Select2)

RSpec

In spec/spec_helper.rb

  require 'capybara_select2'
  RSpec.configure do |c|
    c.include Capybara::Select2
  end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Interact with select2 select boxes with capyabara

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages