Skip to content

Instantly share code, notes, and snippets.

@PandaWhisperer
Created January 17, 2017 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PandaWhisperer/d3eb58ad541f256753ca9d2374946453 to your computer and use it in GitHub Desktop.
Save PandaWhisperer/d3eb58ad541f256753ca9d2374946453 to your computer and use it in GitHub Desktop.
class Hello
def greeting(name)
"Hello, #{name}!"
end
end
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