Fix RSpec 3 example warning

Recently merged #75 does not fix the warning in RSpec 3.
This one works with both 2.x and 3.x.