Given this HTML in the view:
<form id="new_merchant_user" method="post">
<fieldset>
<div id='legend'>
<legend>Recover Pasword</legend>
</div>
<input id="merchant_user_email" name="merchant_user[email]" type="text" value="" />
<input class="btn btn-success" name="commit" type="submit" value="Send Reset Instructions" />
</fieldset>
</form>
How do I select the value of the button with assert_select? I try
assert_select 'form input[type=submit]', "Send Reset Instructions"
but its failing with
<Send Reset Instructions> expected but was
<>..
Expected 0 to be >= 1.
Basically, selecting nothing.
What am I doing wrong here?