README
Technical Test @ Doctolib
The goal is to write an algorithm that checks the availabilities of an agenda depending of the events attached to it. The main method has a start date for input and is looking for the availabilities of the next 7 days.
They are two kinds of events:
- 'opening', are the openings for a specific day and they can be reccuring week by week.
- 'appointment', times when the doctor is already booked.
To init the project:
rails new doctolib-test
rails g model event starts_at:datetime ends_at:datetime kind:string weekly_recurring:boolean
The mission :
- in rails 5.1
- your code must be contained in only two files named event.rb and event_test.rb
- sqlite compatible
- to make the following unit test pass
- to add tests for the edge cases