Last Updated: February 25, 2016
·
434
· mejarc

Testing <select> with Capybara

A couple of points:

  • The method is select
  • The desired option is the text value. The desired select can be its label value.
test 'should create a new thing' do
    visit new_thing_url
    select 'Bar', from: 'Foo'

...
end