everydayrails / everydayrails-rspec-2017

Sample source for the 2017 edition of Everyday Rails Testing with RSpec.
http://rspectutorial.com
312 stars 247 forks source link

Chapter 3, invalid variable name #118

Open JunichiIto opened 2 years ago

JunichiIto commented 2 years ago

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