Last active
December 28, 2015 21:19
-
-
Save ashleygwilliams/7563837 to your computer and use it in GitHub Desktop.
TODO7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a test for a method`make_list` that takes an array and returns that same array but | |
# as an array of strings in a numbered list. | |
# Run this test by typing `rspec list_maker_spec.rb` in your terminal. | |
# Then, create a method on array called `make_list` that iterates over the array it is | |
# called with and appends a number, a period, and a space to each element. | |
# e.g make_list(["ich", "ni", "san"]) #=> ["1. ich", "2. ni", "3. san"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment