Topic: cucumber capybara page.should have_content doesn't work

Hi

this problem is probably related to the one I referred in my last post.

My Gemfile is the same as the one referred in the last post.

I use

page.should have_content

in all my scenarios (4 at the time) and it only fails in one of them.

In application.html.erb I have:

<% if user_signed_in? %>
<p class="menu_title"><%= current_user.name %></p>
<% end %>

This results well in the browser, but capybara can't seem to find the text generated by this code.
Even

page.html

doesn't show the user name, but the rest of the page seems perfect.

Help needed sad