...

/

Putting the Proctor to Work

Putting the Proctor to Work

Now let’s try running our proctor to schedule a timed quiz.

We'll cover the following...

Scheduling a quiz

First, let’s schedule a quiz:

Executable

alias Mastery.Examples.Math
alias Mastery.Boundary.QuizSession
alias Mastery.Examples.Math
alias Mastery.Boundary.QuizSession
one_minute_from_now = DateTime.add(now, 60)
now = DateTime.utc_now()

Note: Since the quiz is timed, it might end before you can enter the rest of the commands below. In that case, you’ll have to restart the iex terminal and re-enter all of the “Executable” commands shown above.

Output

iex(1)> alias Mastery.Examples.Math
Mastery.Examples.Math
iex(2)> alias Mastery.Boundary.QuizSession
Mastery.Boundary.QuizSession
iex(3)> alias Mastery.Examples.Math
Mastery.Examples.Math
iex(4)>
...