Autotesting only works if first *_spec.rb includes spec_helper
Reported by Niels Ganser | July 16th, 2008 @ 09:34 PM | in No-Milestone-Assigned
Since commit 1aca72d0c5b5dc92c1ac9a4b94ccb8f6961067d2 autotesting fails if the first file to be autotested doesn't include the spec_helper.rb.
Because now the spec_command isn't the first file to be given to the ruby binary on the commandline anymore, the _spec.rb file that is found first by the autotester is responsible for pulling in Spec::Runner which then parses the other command line arguments (e.g. all specs to be run).
I can see how this change was practical but want to make the core team aware that it might lead to confusion if some of the specs are e.g. completely commented out or just empty place holder files. Due to the unpredictable order in which specs are loaded one might not immediately understand why autotest is simply sitting there not outputting anything.
Not submitting a patch since I don't know if this should actually be "fixed". Howeder, I'd say that it calls for a note in the changelog.
Regards,
Niels
Comments and changes to this ticket
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Behaviour Driven Development for Ruby.
