Alternative for prescriptions () in cucumbers with Capybara?

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?

+3
source share
1 answer

, . Capybara , , (.. HTTP-). , , Capybara.

+5

Source: https://habr.com/ru/post/1747618/


All Articles