Skip to content

Commit

Permalink
Dirty way to support multiple recorded requests per cassette
Browse files Browse the repository at this point in the history
  • Loading branch information
andruby committed Apr 4, 2016
1 parent 0ae8a0f commit 0711e8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/exvcr/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ defmodule ExVCR.Handler do
end

defp get_response_from_server(request, recorder) do
raise_error_if_cassette_already_exists(recorder)
# raise_error_if_cassette_already_exists(recorder)
adapter = ExVCR.Recorder.options(recorder)[:adapter]
response = :meck.passthrough(request)
|> adapter.hook_response_from_server
Expand Down
4 changes: 2 additions & 2 deletions lib/exvcr/recorder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ defmodule ExVCR.Recorder do
"""
def save(recorder) do
file_path = get_file_path(recorder)
if File.exists?(file_path) == false do
# if File.exists?(file_path) == false do
ExVCR.JSON.save(file_path, ExVCR.Recorder.get(recorder))
end
# end
end

@doc """
Expand Down

0 comments on commit 0711e8d

Please sign in to comment.