How do I preserve the format and type of the original data stored in a file?

```
stored_response = File.open('spec/data/response.txt', 'rb') { |f| f.read }
item.get_location.should == stored_response

```

`#get_location` being an api call

response.txt contains [this](https://gist.github.com/4501489) but returns [this](https://gist.github.com/4501471) once read