You can improve the readability and remove duplication in RSpec by adding matchers and macros. Learn how in this episode.

Read more at the source