output
matcher. expect { print 'foo' }.to output('foo').to_stdout
prints_name()
that takes a name as a parameter and prints "Hello, {name provided}!"
to standard output. It assumes the student's file name is example.rb
. Replace the require
with whatever your student's file name is.