title: How to resolve RSpec's deprecation warning about the new expect syntax?
body: <p>When I run this RSpec example, it passes but I'm getting a deprecation warning.</p>
  
  <pre><code>context "should have valid detail for signup" do
    it "should give error for invalid confirm password" do
      find("#usernamesignup").set("Any_name")
      find("#mobile_number").set("1234567890")
      find("#emailsignup").set("mymail@yopmail.com")
      find("#passwordsignup").set("12345678")
      find("#passwordsignup_confirm").set("")
      find(".signin").click
      sleep 2
      page.should have_content "Confirm Password Does not Match"
    end
  end
  </code></pre>
  
  <p>Here is the output:</p>
  
  <p>Deprecation Warnings:</p>
  
  <blockquote>
    <p>Using <code>should</code> from rspec-expectations' old <code>:should</code> syntax without
    explicitly enabling the syntax is deprecated. Use the new <code>:expect</code>
    syntax or explicitly enable <code>:should</code> with <code>config.expect_with(:rspec)
    { |c| c.syntax = :should }</code> instead. Called from
    /home/rails/rails_nimish/Devise_use/spec/features/users_spec.rb:113:in
    `block (4 levels) in '</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/BfJGr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BfJGr.png" alt="enter image description here"></a></p>
  
  <p>How to resolve this warning?</p>
  
  <p><strong>Update:solution</strong>
  I just replaced </p>
  
  <blockquote>
    <p>page.should have_content "Confirm Password Does not Match"</p>
  </blockquote>
  
  <p>with:</p>
  
  <pre><code>expect(page).to have_content "Confirm Password Does not Match"
  </code></pre>