Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. ### SETUP
  2. require 'rspec'
  3.  
  4. ### LOGIC (fix me)
  5.  
  6. def hello(who)
  7. "hello #{who}"
  8. end
  9.  
  10. ### TEST CODE (don't touch me)
  11.  
  12. describe '#hello' do
  13. it 'returns "hello world!" when "world" is passed in' do
  14. result = hello('world!')
  15. expect(result).to eq('hello world!')
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement