Randy Harmon
2009-Feb-26 22:10 UTC
[rspec-users] [cucumber] Adding a file to support/ can break requires ordering
Current code in cucumber prioritizes features/support/ files, but if I add another file in that location, then it can (sometimes) include that file first. Seems to depend on the number of files actually in the entire list being sorted, or something. I added a ticket for this issue. http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/213-sorting-problems-with-files-to-require-with-extra-files-in-featuressupport Meanwhile, is there a different place I should put this helper file that would be better suited than support/ ? Thanks, Randy
Ben Mabey
2009-Feb-26 22:47 UTC
[rspec-users] [cucumber] Adding a file to support/ can break requires ordering
Randy Harmon wrote:> Current code in cucumber prioritizes features/support/ files, but if I add another file in that location, then it can (sometimes) include that file first. Seems to depend on the number of files actually in the entire list being sorted, or something. > > I added a ticket for this issue. > > http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/213-sorting-problems-with-files-to-require-with-extra-files-in-featuressupport >I''ve replied on the ticket.> Meanwhile, is there a different place I should put this helper file that would be better suited than support/ ? >No, that is the correct spot. -Ben