philosophie / suspenders

A Rails template with our standard defaults, ready to deploy to Heroku.
MIT License
2 stars 1 forks source link

How does spec_helper get included in rails_helper? #84

Closed lexi-lambda closed 9 years ago

lexi-lambda commented 9 years ago

As far as I can tell, right now the answer seems to be "it doesn't". Even so, sometimes it seems to be loaded, but I can't figure out why or how.

Shouldn't there be an explicit require 'spec_helper'?

lexi-lambda commented 9 years ago

Actually, it looks like it gets included via the .rspec file, which includes --require spec_helper. If we do it that way, we need to remove .rspec from .gitignore. Otherwise, we need to explicitly require spec_helper in rails_helper.

taboularasa commented 9 years ago

I vote we remove .rspec