-
-
Save dpickett/0b132b74a78f1923cb76 to your computer and use it in GitHub Desktop.
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
require 'rspec' | |
def greet(name) | |
"Hi #{name}" | |
end | |
describe "greeting function" do | |
it 'says "Hi Dan" when "Dan" is supplied' do | |
expect(greet("Dan")).to eq("Hi Dan") | |
end | |
it 'says "Hi Louise" when "Louise is supplied' do | |
expect(greet("Louise")).to eq("Hi Louise") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment