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

Donte Handy #15

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open

Donte Handy #15

wants to merge 27 commits into from

Conversation

dontehandy
Copy link

This pull request introduces several new features and updates to the Event, FoodTruck, and Item classes, along with their corresponding tests. The changes enhance the functionality of these classes and provide comprehensive test coverage.

New Features and Functionality:

  • lib/event.rb: Added methods to manage food trucks, return sorted item lists, calculate total inventory, and identify overstocked items.
  • lib/food_truck.rb: Added methods to manage inventory, check stock, and calculate potential revenue.
  • lib/item.rb: Created the Item class with attributes name and price.

Test Coverage:

  • spec/event_spec.rb: Added tests for the Event class to verify its attributes, methods for adding food trucks, returning food truck names, and calculating total inventory and overstocked items.
  • spec/food_truck_spec.rb: Added tests for the FoodTruck class to verify its attributes, stock management, and potential revenue calculation.
  • spec/item_spec.rb: Added tests for the Item class to verify its attributes.
  • spec/spec_helper.rb: Configured SimpleCov for test coverage and required necessary files.

Documentation:

  • README.md: Updated with new instructions and examples for using the Event class methods. [1] [2] [3]

Miscellaneous:

dontehandy and others added 27 commits January 15, 2025 12:10
Add contact number to README
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