title: Rails Integration Test - filling out form
body: <p>Why would not this work? </p>
  
  <p>Some people are talking about <code>webrat</code>, but isn't Rails supposed to handle form signup directly? </p>
  
  <p>The below test does not trigger the <code>User#Create</code> action, and I wonder why. Nothing seem to happen.</p>
  
  <pre><code>test "should not sign up more than 5 users" do
    get "signup"
    assert_response :success
    assert_difference('User.count',5) do
      for i in 0..10 do
        puts "Signup user"
        post_via_redirect "/signup",
                          :first_name =&gt; "Petter",
                          :last_name =&gt; "Smart",
                          :email =&gt; "petter.smart&lt;%=i%&gt;@prayalot.com",
                          :password =&gt; '123456',
                          :password_confirmation =&gt; '123456'
        assert_equal '/sentmail', path
      end
    end
  end
  </code></pre>