railstutorial/sample_app_rails_4 — pull request #11 by bgiobbe (2013-08-28 20:45:06+00:00)
Title: Fix patch request tests

I was having trouble getting a couple tests to fail, so I looked through the server log to see what was going on and discovered that capybara methods and http verb methods use different remember tokens for the same signed-in user.

A few tests pass because of sign-in issues rather than for the intended reasons.
* In any test where a signed-in user issues a 'patch' request, the user must be signed in with "no_capybara: true".
* If user is signed in with "no_capybara: true", capybara methods like "visit" don't work because they use a different remember token; HTTP verbs like 'get' must be used instead.