parroty / exvcr

HTTP request/response recording library for elixir, inspired by VCR.
MIT License
722 stars 132 forks source link

Compiler warnings #103

Closed Ch4s3 closed 7 years ago

Ch4s3 commented 7 years ago

I'm seeing the following using elixir 1.4:

warning: variable "adapter_method" does not exist and is being expanded to "adapter_method()", please use parentheses to remove the ambiguity or change the variable name

This happens for all of my tests which use exvcr. I have them setup as follows:

defmodule SomeApp.ModuleTest do
  use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney

  setup_all do
    HTTPoison.start
  end

  test "some test that does an api call" do
    assert something == result_of_call
  end
end

My deps:

  defp deps do
    [{:phoenix, "~> 1.2.1"},
     {:phoenix_pubsub, "~> 1.0"},
     {:phoenix_ecto, "~> 3.0"},
     {:postgrex, ">= 0.0.0"},
     {:phoenix_html, "~> 2.8"},
     {:phoenix_live_reload, "~> 1.0", only: :dev},
     {:gettext, "~> 0.11"},
     {:cowboy, "~> 1.0"},
     # App specific deps
     {:comeonin, "~> 3.0"},
     {:credo, "~> 0.7", only: [:dev]},
     {:csv, "~> 1.4.2"},
     {:dialyxir, "~> 0.3.5", only: :dev},
     {:distillery, "~> 1.0", runtime: false, warn_missing: false},
     {:edeliver, "~> 1.4.0"},
     {:excoveralls, "~> 0.5", only: :test},
     {:ex_doc, "~> 0.15", only: :dev, runtime: false},
     {:ex_machina, "~> 1.0", only: :test},
     {:exvcr, "~> 0.8", runtime: false},
     {:gen_smtp, "~> 0.11.0"},
     {:guardian, "~> 0.14.2"},
     {:httpoison, "~> 0.11.0"},
     {:timex, "~> 3.0"},
     {:sweet_xml, "~> 0.6.2"},
     {:wallaby, "~> 0.14.0"},
     {:xml_builder, "~> 0.0.6"},
     {:uuid, "~> 1.1"}
    ]
  end
Ch4s3 commented 7 years ago

This may be specific to 0.8.0.

Ch4s3 commented 7 years ago

At least it is googlable now ;)