Also, this should be named hal_json.rb and your spec below should follow the package structure and thus be hal_json_spec.rb