Fix should_receive deprecations
Ruby 1.8 syntax fixes.