Skip to content

Latest commit

 

History

History

barebones_with_setup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MoxExample

Description

This example is a barebones example of how to use Mox and how to configure it during testing.

How

Run mix test and you'll see a mocked HTTP call tested without making the HTTP call.

Run iex -S mix and then MoxExample.post_name("Mox") and you'll see the HTTP request go through!