Sometime I really need to check something in the database,
But if I immediate will go to database with u = User.last there is a chance that AJAX request wont finished and in the User.last - I'll find old record.
So for this I need some workaround, for example,
assert has_content? 'Success' do # here we access to database end
We check for Success message, which server response, and this is the sign, that we can go to our database. How can I achive this? Thanks all in advance.