Skip to content

Commit

Permalink
fixed bug in module doc
Browse files Browse the repository at this point in the history
  • Loading branch information
JB committed Apr 12, 2023
1 parent 0003077 commit 37a06d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/protomock.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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%"
Expand Down

0 comments on commit 37a06d2

Please sign in to comment.