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 4 page 54, second User should be first User #90

Open JunichiIto opened 6 years ago

JunichiIto commented 6 years ago

A reader of the Japanese edition reported an errata. In the chapter 4 page 54, you wrote "we need a second User persisted in the database" but "second" should be "first" in this context, correct?

screen shot 2018-09-10 at 19 36 05

natalieytan commented 5 years ago

I think the text "second" is correct.

The first user is already persisted .create Whereas the second is not persisted using .build

When you run the test, it does not pass, until you make the second User persisted using .create