Created
January 17, 2017 00:43
-
-
Save PandaWhisperer/d3eb58ad541f256753ca9d2374946453 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
class Hello | |
def greeting(name) | |
"Hello, #{name}!" | |
end | |
end |
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_relative 'hello' | |
describe Hello do | |
describe "#greeting" do | |
it "returns a greeting" do | |
expect(Hello.new.greeting("Test")).to eq("Hello, Test!") | |
end | |
it "returns another greeting" do | |
expect(Hello.new.greeting("Kristin")).to eq("Hello, Kristin") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment