Skip to content
Open

Done #42

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion say_hello.rb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Build your say_hello method here
def greeting(name)
puts "Hello, #{name}"
end
14 changes: 0 additions & 14 deletions spec/say_hello_spec.rb
Original file line number Diff line number Diff line change
@@ -1,14 +0,0 @@
require_relative './spec_helper'

describe "say_hello" do

it 'accepts an argument of a name and prints out Hello with that Name' do
expect($stdout).to receive(:puts).with("Hello Kent Beck!")
say_hello("Kent Beck")
end

it 'defaults to Ruby Programmer when no name is passed in' do
expect($stdout).to receive(:puts).with("Hello Ruby Programmer!")
say_hello()
end
end