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
Written by Melanie Archer
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Related Tags
#capybara
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#