Reports that built-in matchers in specs2 could be used.
Example:
class TestSpec extends Specification { def is = s2"""
This is a spec
opt
should contain 1 $e1
"""
def e1 = {
val opt = Some(1)
opt must equalTo (Some(1))
}
}
After the quick-fix is applied:
class TestSpec extends Specification { def is = s2"""
This is a spec
opt
should contain 1 $e1
"""
def e1 = {
val opt = Some(1)
opt must beSome(1)
}
}