Skip to content

Conversation

@sophiabaldonado
Copy link

Worked on by Sophia Baldonado.

Requires awesome_print for enhanced specs.

The between method for the Sale class was interesting to think about and I ended up doing it in a way that's probably more complicated than needed but makes sense to me. The most frustrating optional was the most_revenue method in the Vendor class because it takes a really long time to run -- I skip the test for it because it takes several minutes to execute -- but I did learn a better way to implement it, which would require a large refactor of all of the classes. I might do that over the break!

… instance; Created sales method finds all sales associated with a vendor instance; Created market spec to return markets that contain nil values for any of their instance varaiables;
…ess you want them to; Created methods for Market to find markets with missing data;
…d vendor and product for an instance of Sale;
…purchase time within two given times, uses DateTime;
…using the find method to test on instances of each class; This saves time because it doesn't have to call the find enumerable for each test and keeps the test data the same even if the csv changes;
…ty and wrote better specs for it; The method now creates an array that includes the market id and what info is missing, spec doesn't print it out anymore;
…ed the find methods when I added hard-coded instances lol; Refactor specs to use let where appropriate;
…d of twice; Uses an each loop instead of map and zip enumerables;
…or; Added new specs for .all for each class;
…the instance of market based on its vendors;
…ndor names and return a collection of markets that include your search term;
… 7 minutes to execute.. ; Cleaned up market_spec a little;
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