RSpec – Metadata

  • Post author:
  • Post category:RSpec
  • Post comments:0 Comments

RSpec is a flexible and powerful tool. The Metadata functionality in RSpec is no exception. Metadata generally refers to “data about data”. In RSpec, this means data about your describe, context and it blocks.…

Continue ReadingRSpec – Metadata

RSpec – Matchers

  • Post author:
  • Post category:RSpec
  • Post comments:0 Comments

If you recall our original Hello World example, it contained a line that looked like this − expect(message).to eq "Hello World!" The keyword eql is an RSpec â€œmatcher”. Here, we will introduce…

Continue ReadingRSpec – Matchers