Follow up to #373. Fix Rspec deprecation error in test.