everydayrails/everydayrails-rspec-2017

Chapter 3, invalid variable name

JunichiIto opened this issue · 0 comments

In Chapter 3, "Testing instance methods" section, the sample code

def name
  [firstname, lastname].join(' ')
end

should be

def name
  [first_name, last_name].join(' ')
end