Update to silence deprecation warnings in RSpec 3. (RSpec 2 compatible)