Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Refactoring an untested, complex case statement
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
1. View starting_point.rb to see the method as it existed originally. 2. View color_generator.rb to see the final class that was extracted and the method that was refactored 3. View test_color_generator.rb to see the tests that were created to allow the refactoring. The original source is from https://github.com/chrisdingli/PixelHoldr