Skip to content

Commit

Permalink
Apply to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
parroty committed Mar 9, 2014
1 parent aa8aea4 commit 90cf12f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ defmodule ExVCR.Adapter.HttpcTest do
test "get request" do
use_cassette "example_httpc_request" do
{:ok, {{_http_version, status_code = 200, _reason_phrase}, headers, body}} = :httpc.request('http://example.com')
assert iolist_to_binary(body) =~ %r/Example Domain/
assert to_string(body) =~ %r/Example Domain/
end
end
```
Expand Down
2 changes: 1 addition & 1 deletion lib/exvcr/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ defmodule ExVCR.Handler do
if params[:method] == nil || head[:request].method == nil do
true
else
atom_to_binary(params[:method]) == head[:request].method
to_string(params[:method]) == head[:request].method
end
end

Expand Down

0 comments on commit 90cf12f

Please sign in to comment.