Created
April 8, 2015 13:21
-
-
Save PamBWillenz/da2e6ff91256bca24cec 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(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