From 37a06d2d0a62ac316a50e91cf6b87a76f5af00c8 Mon Sep 17 00:00:00 2001 From: JB Date: Wed, 12 Apr 2023 14:25:26 -0700 Subject: [PATCH] fixed bug in module doc --- lib/protomock.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/protomock.ex b/lib/protomock.ex index 4ec2a20..0bc2e2e 100644 --- a/lib/protomock.ex +++ b/lib/protomock.ex @@ -100,7 +100,7 @@ defmodule ProtoMock do test "gets and formats temperature" do protomock = ProtoMock.new() - |> ProtoMock.expect(&WeatherAPI.temperature/2, fn _api, _lat_long -> {:ok, 30} end) + |> ProtoMock.expect(&WeatherAPI.temperature/2, fn _lat_long -> {:ok, 30} end) assert HumanizedWeather.display_temp({50.06, 19.94}, protomock) == "Current temperature is 30 degrees" @@ -111,7 +111,7 @@ defmodule ProtoMock do test "gets and formats humidity" do protomock = ProtoMock.new() - |> ProtoMock.stub(&WeatherAPI.humidity/2, fn _api, _lat_long -> {:ok, 60} end) + |> ProtoMock.stub(&WeatherAPI.humidity/2, fn _lat_long -> {:ok, 60} end) assert HumanizedWeather.display_humidity({50.06, 19.94}, protomock) == "Current humidity is 60%"