Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise completed #10

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Conversation

PhilipVigus
Copy link

@PhilipVigus PhilipVigus commented Mar 20, 2020

I've completed the exercise, although I ended up doing the challenges in the wrong order as I implemented the 'print birthdays today' user story after I'd done the extension challenges about extracting the Birthday class and using mocks.

Student and others added 19 commits March 19, 2020 08:23
The content of the README that was included in the forked repo was
deleted and replaced with a description of my approach to the
exercise.

So far it only includes the user stories I've derived from the
exercise requirements.
Doubling and mocking were used to remove the BirthdayList test
spec's dependence on the Birthday class.
Previously the class used a string to represent its date. It now
uses an instance of the Time class.
to_s was overriden to return a 'pretty' version of the birthday's
date.
The BirthdatList tests were refactored to remove errors occurring
with the use of a Time variable to store the date in the
Birthday class.
The method currently only passes a test to print nothing if there
are no friends stored with birthdays today.
The incorrect doubles were being used in the tests, which were not
mocking the birthday class with the date as an instance of Time.
The incorrect doubles were being used in the tests, which were not
mocking the birthday class with the date as an instance of Time.
An error in the way I pushed to remote led to the remote
and my local copies diverging. This merge fixes that.
birthday_list was missing a require to use the Birthday class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant