Add Ruby specs for API specs, for issue #4