Skip to content

Instantly share code, notes, and snippets.

@PamBWillenz
Created April 8, 2015 13:45
Show Gist options
  • Save PamBWillenz/690f5c640352fe42dc87 to your computer and use it in GitHub Desktop.
Save PamBWillenz/690f5c640352fe42dc87 to your computer and use it in GitHub Desktop.
Debugging Code
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