[rspec-users] OT: Identifying unused code?

2010-02-10 Thread Alex Satrapa
I'm sure this has been covered before, but after some time all I've been able to find on the intarwebs are references to the use of code coverage tests to identify code that is not used by any current tests. I guess the assumption is that you've specced your application completely, and any code

Re: [rspec-users] Trying to spec all models

2010-02-10 Thread David Chelimsky
On Thu, Feb 11, 2010 at 12:13 AM, Mike Sassak wrote: > On Wed, Feb 10, 2010 at 10:17 PM, Phillip Koebbe > wrote: >> When I do >> >> script/spec -c -f n  spec/models/**/*_spec.rb >> >> I get >> >> /Library/Ruby/Gems/1.8/gems/rspec-1.3.0/lib/spec/runner/options.rb:283:in >> `files_to_load': File or

Re: [rspec-users] Trying to spec all models

2010-02-10 Thread Mike Sassak
On Wed, Feb 10, 2010 at 10:17 PM, Phillip Koebbe wrote: > When I do > > script/spec -c -f n  spec/models/**/*_spec.rb > > I get > > /Library/Ruby/Gems/1.8/gems/rspec-1.3.0/lib/spec/runner/options.rb:283:in > `files_to_load': File or directory not found: spec/models/**/*_spec.rb > (RuntimeError) >

[rspec-users] Trying to spec all models

2010-02-10 Thread Phillip Koebbe
When I do script/spec -c -f n spec/models/**/*_spec.rb I get /Library/Ruby/Gems/1.8/gems/rspec-1.3.0/lib/spec/runner/options.rb:283:in `files_to_load': File or directory not found: spec/models/**/*_spec.rb (RuntimeError) Yet, if I go into irb and do Dir.glob('spec/models/**/*_spec.rb') I

Re: [rspec-users] Terminate on first failure?

2010-02-10 Thread Peter Nost
David Chelimsky wrote: > # purely hypothetical code - do not try this at home > Rspec::Core.configure do |c| > c.after(:each) do > if running_example.metadata[:status] == 'failed' > running_example.example_group.break > end > end > end > > Coming soon, but not quite yet. Very co