Remove newlines in CPU strings on Darwin

Strings weren’t being chomped.  

  "cpu": {
    "real": 4,
    "total": 8,
    "mhz": 2300,
    "vendor_id": "GenuineIntel\n",
    "model_name": "Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz\n",

Fixed spec to properly mock the output with the newline to catch this