class Object
Public Instance Methods
option_matcher(element)
click to toggle source
# File lib/capybara-choices/rspec/matchers.rb, line 5 def option_matcher(element) choices_container = element.find('.choices', match: :first) choices_version = CapybaraChoices::Utils.detect_choices_version(choices_container) CapybaraChoices::Selectors.option_selector(choices_version) end