Built out the courseController#index method along with supporting tests. Ideally this would be a paginated query.
Just noticed the test directory and deleted it. rspec don't need no stinking test directory!
Built out basic specs and the basic page for the course/index view. Also built some pending specs for the enroll button. Next step is to build out the enroll logic.
Moved the routes to place courses within students to allow easy access to the student id for enrollment. This required refactoring some courses controller logic, updating the form in the new view and fixing specs for all the course pages as well as the controller. All specs are now green again and the app is ready to build out the CoursesController#Enroll method.
Built out a basic version of the CoursesController#Enroll method. It will need to be altered to direct to the new enrolled student's page once that is completed. The next step is to build out the enrolled_student machinery.
Expanded the CoursesController#Show method and support specs to retrieve an enrolled student if there is one. Controller specs are green.
Expanded the coursesController#index method and supporting specs to retrieve the student's enrolledStudents from the database for use in hiding enrollment buttons.
Realized that switching enrollment buttons based on enrollment status in the course index and show was feature creep and thus unncessary atm.
Built out the callback and support specs to make an EnrolledStudentAssignment for each of a course's assignments. This is likely to be a big call and should be offloaded to an async worker.