Method: RWebUnit::Assert#assert_option_value_equals
- Defined in:
- lib/rwebunit/assert.rb
#assert_option_value_equals(select_name, option_value) ⇒ Object Also known as: assert_select_value
160 161 162 163 164 165 |
# File 'lib/rwebunit/assert.rb', line 160 def assert_option_value_equals(select_name, option_value) @web_browser.select_lists.each { |select| next unless select.name == select_name assert_equal(select.value, option_value, "Select #{select_name}'s value is not equal to expected: '#{option_value}'") } end |