Created
April 8, 2015 13:45
-
-
Save PamBWillenz/690f5c640352fe42dc87 to your computer and use it in GitHub Desktop.
Debugging Code
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
def hello(firstpresident1, lastpresident1) | |
"Hello #{firstpresident1} #{lastpresident1}" | |
end | |
def hello(firstpresident2, lastpresident2) | |
"Hello #{firstpresident2} #{lastpresident2}" | |
end | |
p hello("Abraham", "Lincoln") | |
p hello("George", "Washington") | |
Output | |
"Hello Abraham Lincoln" | |
"Hello George Washington" | |
# describe "hello" do | |
# it "returns a full greeting for Abraham Lincoln" do | |
# expect( hello("Abraham", "Lincoln") ).to eq("Hello Abraham Lincoln") | |
# end | |
# it "returns a full greeting for George Washington" do | |
# expect( hello("George", "Washington") ).to eq("Hello George Washington") | |
# end | |
# end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment