I have the following form element
<div class="control-group no-margin">
<div class="controls">
<label for="user_terms_and_conditions" class="checkbox">
<input id="user_terms_and_conditions" name="user[terms_and_conditions]" type="checkbox" > I accept the Open Vault <a href="/blog/terms-and-conditions">Terms & Conditions</a>
</label>
</div>
</div>
but my capybara test is not properly checking the checkbox with the following
check 'user_terms_and_conditions' unless terms_and_conditions.nil?
or
find('#user_terms_and_conditions').set(true) unless terms_and_conditions.nil?
What am I doing wrong? There is a validation in the model to make sure its true and it keeps returning the error that this must be checked. When i do this with my eyeballs in the browser it works fine.