I'm struggling to test whether my select box has a value of 6.
<form class="edit_line_item" id="edit_line_item_7" action="/line_items/7" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓"><input type="hidden" name="_method" value="patch">
<select name="line_item[quantity]" id="line_item_quantity"><option selected="selected" value="1">1</option>
</select>
</form>
My rspec code
assert_select "select#line_item_quantity", value: 6
Whatever I change the value to my test still passes so I am wrong somewhere.