1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Fix up tests for encoding changes.

Add a `.to_hash => {}` for the Net HTTP response mocks.
This commit is contained in:
Andy Brody 2015-03-13 18:00:51 -07:00
parent 6d7818f517
commit 5ce0c6ebde
16 changed files with 56 additions and 31 deletions

View file

@ -66,7 +66,7 @@ describe RestClient do
response.encoding.should eq Encoding::BINARY
lambda {
response.encode('utf-8')
}.should_raise(Encoding::UndefinedConversionError)
}.should raise_error(Encoding::UndefinedConversionError)
response.valid_encoding?.should eq true
end
end