I want to assert if certain select has certain value and not text. This works if I assert by text :
it 'should be true' do
should have_select("country", :selected => 'Brazil')
end
My select html is like this :
<select name="user[country]" id="country">
<option value="BR">Brazil</option>
...
</select>
I want to assert does page have select with selected value, how can I do that?