class Object

Public Instance Methods

option_matcher(element) click to toggle source
# File lib/capybara_select2/rspec/matchers.rb, line 5
def option_matcher(element)
  select2_container = element.find('.select2-container', match: :first)

  select2_version = CapybaraSelect2::Utils.detect_select2_version(select2_container)

  CapybaraSelect2::Selectors.option_selector(select2_version)
end