Skip to content

Commit

Permalink
docs: Stop suggest calling stub_with at compilation time (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtomaszewski authored Feb 7, 2023
1 parent 909006f commit be4c612
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/mox.ex
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,11 @@ defmodule Mox do
end
defmock(MyApp.MockWeatherAPI, for: MyApp.WeatherAPI)
stub_with(MyApp.MockWeatherAPI, MyApp.StubWeatherAPI)
setup do
stub_with(MyApp.MockWeatherAPI, MyApp.StubWeatherAPI)
:ok
end
This is the same as calling `stub/3` for each callback in `MyApp.MockWeatherAPI`:
Expand Down

0 comments on commit be4c612

Please sign in to comment.