Convert rspec syntax

The expectation syntax were changed using the transpec gem, in order to
adopt the more future proof, preferred rspec syntax.