mockery v1.4.0 Mockery.History
Provides calls history for Mockery.Assertions macros.
It’s disabled by default. It can be enabled/disabled globally by following config
config :mockery, history: true
Or for single test process
Mockery.History.enable_history(true)
Process config has higher priority than global config
Link to this section Summary
Functions
Enables/disables history in scope of single test process
Link to this section Functions
Enables/disables history in scope of single test process
use Mockery
test "example" do
#...
enable_history()
assert_called Foo, :bar, [_, :a]
enable_history(false)
assert_called Foo, :bar, [_, :b]
end