# File lib/Borges/TestCase/HtmlRendererTest.rb, line 218 def test_option_selected output = render do |r| r.option("text", true) do end end assert_match(/<option/, output, "Is an <output> element") assert_match(/selected="selected"/, output, "Output is selected") assert_match(/value="1"/, output, "Output a value") assert_match(/>text</, output, "Contents are text") end