Generated `spec_helper.rb` / `.rspec` do not quite work as intended #1280

myronmarston opened this Issue Feb 1, 2014 · 1 comment


None yet

1 participant


The generated spec_helper.rb file includes some settings that are only active if the user is only running one file:

However, the generated .rspec file now requires spec_helper very early:

At the time spec_helper.rb is loaded, rspec hasn't resolved files_to_run and it's an empty array so these settings aren't working together as intended.

I think we need to resolve files_to_run before requiring files passed by --require or make it resolve lazily when accessed so that it works in this case.

@myronmarston myronmarston self-assigned this Feb 5, 2014

Fixed by #1289.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment