[rspec-users] Trying to spec all models
phillipkoebbe at gmail.com
Wed Feb 10 22:17:36 EST 2010
When I do
script/spec -c -f n spec/models/**/*_spec.rb
File or directory not found: spec/models/**/*_spec.rb (RuntimeError)
Yet, if I go into irb and do
Does spec not glob? I'm working on a wrapper script and I'd like to be
able to run all specs of a given type (controller, model, view) by
passing a single switch (-c, -m, -v). It works when I have
subdirectories (as I do with controllers), but it isn't working when I
don't (as with models). The fact that glob picks up the files properly
got me wondering, so I thought I'd ask.
I could glob them myself and run them all individually, but then I
wouldn't get the combined statistics at the end.
More information about the rspec-users