title: Test a form text_field presence with capybara
body: <p>I have the following form and I want to check if the text field is present or not. How can I do that ?
  </p>
  
  <pre class="lang-rb prettyprint-override"><code>&lt;%= form_for(ownership, remote: true) do |f| %&gt;
    &lt;div&gt;
      &lt;%= f.text_field :confirm, value: nil %&gt;
      &lt;%= f.hidden_field :start_date, value: Time.now %&gt;
    &lt;/div&gt;
    &lt;%= f.submit t('button.ownership.take.confirmation'), class: "btn btn-small"%&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Here my test :</p>
  
  <pre class="lang-rb prettyprint-override"><code>describe "for not confirmed ownership" do
  
    before do
      FactoryGirl.create(:agreed_ownership, user: current_user, product: product)
      be_signed_in_as(current_user)
      visit current_page
    end
  
    # it { should_not have_text_field(confirm) }
    it { should_not have_button(t('button.ownership.take.confirmation')) }
  end
  </code></pre>