On the start page of your Movie DB, show the title of a random movie that is coming soon to theaters.
Tip
Consider the best place to put the new logic. Should it be an existing class or a new class?
Automatically retrieve the year of a movie for any new movie entered into MovieDB, using the themoviedb.org API Show archive.org snapshot . For the UI this means that there is no longer a "Year" field when creating a movie. It is automatically fetched and stored before the movie is created. When editing a movie there is a "Year" field that can be changed.
Write RSpec tests for both exercises. Write multiple variants of this test, each using a different approach:
Talk to your mentor about the pros and cons of each approach.
Together with your mentor, find out how to optimize your test suite using a combinations of the techniques you learned. Also consider whether form models can help here.
Your final test suite should have the following properties:
Implement this in your MovieDB.
Tip
Use feature flags to disable the automatic year lookup in tests. Enable the feature only for tests that actually care about the year lookup.