Skip to content

Commit

Permalink
Fix empty result of exvcr.check
Browse files Browse the repository at this point in the history
  • Loading branch information
parroty committed Feb 1, 2015
1 parent bc15897 commit 6ff0495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exvcr/checker.ex
Expand Up @@ -22,7 +22,7 @@ defmodule ExVCR.Checker do
def add_server_count(recorder), do: add_count(recorder, :server)

defp add_count(recorder, type) do
if Mix.Project.config[:test_coverage][:tool] == ExVCR do
if ExVCR.Checker.get != [] do
ExVCR.Checker.append({type, ExVCR.Recorder.get_file_path(recorder)})
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/exvcr/recorder.ex
Expand Up @@ -11,6 +11,8 @@ defmodule ExVCR.Recorder do
Initialize recorder.
"""
def start(options) do
ExVCR.Checker.start([])

{:ok, act_responses} = Responses.start([])
{:ok, act_options} = Options.start(options)

Expand Down

0 comments on commit 6ff0495

Please sign in to comment.