title: How to check page content after button click correctly?
body: <p>I want to check if there loads correct page after clicking 'sign in' button. </p>
  
  <p><strong>users_spec.rb</strong></p>
  
  <pre><code>before :each do
    user = User.create(:email =&gt; 'admin@cm.com', :password =&gt; '123')
  end
  
  it "signs me in" do
    visit '/users/sign_in'
    within("#new_user") do
      fill_in 'Email', :with =&gt; 'admin@cm.com'
      fill_in 'Password', :with =&gt; '123'
      click_button 'Sign in'
    end
    expect(page).to have_content '#{user.name}' 
  end
  </code></pre>
  
  <p>expect(page).to have_content 'Dashboard' checks is there user.name word on the same page, where the form is located. So, what's the sense in click_button then? How to make it check content on the page that should load AFTER click_button? By the way, how to correctly name such tests?
  Sorry, if it's a silly question, I'm a newbie in rspec :c</p>
  
  <p>Thank you!</p>