Skip to content

Instantly share code, notes, and snippets.

@PamBWillenz
Created April 8, 2015 13:21
Show Gist options
  • Save PamBWillenz/da2e6ff91256bca24cec to your computer and use it in GitHub Desktop.
Save PamBWillenz/da2e6ff91256bca24cec to your computer and use it in GitHub Desktop.
Debugging Code
def hello(name1)
"Hello #{name1}"
end
def hello(name2)
"Hello #{name2}"
end
p hello("World")
p hello("Bob")
# describe "hello" do
# it "should return 'Hello World' when passed 'World'" do
# expect( hello("World") ).to eq("Hello World")
# end
# it "should return 'Hello Bob' when passed 'Bob'" do
# expect( hello("Bob") ).to eq("Hello Bob")
# end
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment