We will now finally discuss RSpec Should Expect. Should and Expect are essentially the tools which we use to to validate or satisfy a test condition. Should and Expect are essentially the equivalent to JUnit or Hamcrest from Java. Writing good Should and Expect statements really helps to validate test conditions as well as tell us what the failure is when a test fails.
RSpec Should Expect Video Tutorial
Follow the video tutorial above to learn how to write both Should and Expect statements in your RSpec tests. Once complete you will get a deeper understanding of how these assertions can be combined with WebDriver.