Good day. Rails application 5. The project does not use RSpec. You need to use Capybara to catch the current address (url or path) and check it. There is a current_path method that returns its "http address" relative to the domain root. But in the test, you need to check if the current path \ address is correct for some specific one, that is, after the redirect, I want to check whether it (the redirect) was correct by comparing current_path and the correct path where the user should have gone. If not equal, then the test should fail. Is there such a method in Capybara, how to do it in RSpec already found, but it can not be used in the project, this requirement.

0