infer_spec_type_from_file_location! in spec helper