THP-2-0 / THP2_back

24 stars 6 forks source link

Add Rspec #2

Open zaratan opened 6 years ago

zaratan commented 6 years ago

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:

Reading List

C83 commented 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 ?

zaratan commented 6 years ago

Nope. That's a mechanism of ruby. If something is already required it won't be required again.