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:
parent
6d7818f517
commit
5ce0c6ebde
16 changed files with 56 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue