Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: brobertsaz
Not exactly sure what this has to do with this issue but we were having the same problem. Testing in browser worked fine but the test kept failing. We ended up removing:
OmniAuth.config.test_mode = true
from the spec/support/omniauth_support.rb file and now our tests are passing.
Hope this helps :)