Create units model.
Teachers create courses in a modal.
Use shoulda matchers when possible instead of manually testing for validates_presence.