Upgrade to RSpec3

Replaced the obsolete collection expectations have(n).items and the
should_receive expectation.