Open zaratan opened 6 years ago
I'am doing the third point.
My .rspec file contains --require spec_helper
The second line of rails_helper is require spec_helper
If I add --require rails_helper
in .rspec file, the spec_helper will be loaded twice ?
Nope. That's a mechanism of ruby. If something is already required it won't be required again.
Why ?
We need a test framework right away. This way, rails will generate the different files correctly. I'd rather like Rspec as its syntax is more readable and the tests look good.
Must have:
rails generate rspec:install
).rspec
config must include rails_helper by defaultReading List