I tried capybara with cucumber to get the best test coverage for javascript. I have many steps that test or use things from the Rails integration test helpers, for example:
assigns(:current_user).should_not be_nil
No matter what I call assigns, even if I say something like p assigns, these are errors with:
undefined method `template' for nil:NilClass (NoMethodError)
So it looks like I can no longer do this. Is there an alternative to introspecting what is going on in the controller, or perhaps some way to at least perform these steps in such a way that I have material to test integration?
Tony source
share