0

Both scalatest and Specs2 have separate matchers for should and must.

However, I cannot find any explanation for why you would use one or the other.

What exactly is the difference?

OrangeDog
  • 36,653
  • 12
  • 122
  • 207

1 Answers1

4

There is no difference, this is purely a syntactic preference. I personally prefer to use must in specs2 because I think that should can make people think that an expectation is optional.

Eric
  • 15,494
  • 38
  • 61