Masha
2009-Aug-26 05:38 UTC
[rspec-users] How do I get spec to look for _spec.rb files in multiple levels of subdirs?
Hi, I have the following in my rspec.rake file, yet it doesn''t treat ** as it should - iterating through all subdirectories of spec/qa, but instead it only finds relevant files that are one level down. script/runner ./vendor/gems/rspec-1.2.8/bin/spec --options "./spec/qa/ spec.opts" ./spec/qa/**/*_spec.rb Thank you much, Masha
David Chelimsky
2009-Aug-26 10:10 UTC
[rspec-users] How do I get spec to look for _spec.rb files in multiple levels of subdirs?
On Wed, Aug 26, 2009 at 12:38 AM, Masha<errabunda at gmail.com> wrote:> Hi, > > I have the following in my rspec.rake file, yet it doesn''t treat ** as > it should - iterating through all subdirectories of spec/qa, but > instead it only finds relevant files that are one level down. > > script/runner ./vendor/gems/rspec-1.2.8/bin/spec --options "./spec/qa/ > spec.opts" ./spec/qa/**/*_spec.rbTry just ./spec/qa. Also, script/spec would be simpler: script/spec --options ./spec/qa/spec.opts ./spec/qa HTH, David> > Thank you much, Masha > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Masha
2009-Aug-26 16:16 UTC
[rspec-users] How do I get spec to look for _spec.rb files in multiple levels of subdirs?
That was it, thank you! On Aug 26, 3:10?am, David Chelimsky <dchelim... at gmail.com> wrote:> On Wed, Aug 26, 2009 at 12:38 AM, Masha<errabu... at gmail.com> wrote: > > Hi, > > > I have the following in my rspec.rake file, yet it doesn''t treat ** as > > it should - iterating through all subdirectories of spec/qa, but > > instead it only finds relevant files that are one level down. > > > script/runner ./vendor/gems/rspec-1.2.8/bin/spec --options "./spec/qa/ > > spec.opts" ./spec/qa/**/*_spec.rb > > Try just ./spec/qa. > > Also, script/spec would be simpler: > > script/spec ?--options ./spec/qa/spec.opts ./spec/qa > > HTH, > David > > > > > Thank you much, Masha > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.org > >http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users