1.8.7 compliant spec syntax

'.' method chaining after line break is from 1.9
Net::HTTP compat fix for < 2.0.0

Relax "Accept-Encoding" expectation. Before 2.0.0 Net::HTTP does not
send Accept-Encoding header.
spec - ruby 1.8.7 Hash ordering compat fix

In ruby 1.8.7 Hash order is not fixed.