Re: [rspec-users] rake 0.9.0 activated error + debugger not working?

2011-06-07 Thread Matt Wynne
On 7 Jun 2011, at 03:06, Patrick J. Collins wrote: >> rspec, not rake: > > Oops! I missed that.. So other than this debugger thing, are there any other > differences between rake spec and rspec spec? Just a bit! They're two completely different commands that run two completely different comp

Re: [rspec-users] rake 0.9.0 activated error + debugger not working?

2011-06-07 Thread Patrick J. Collins
> Rake is a tool for running tasks of any nature, which you can invoke with the > command `rake`. If you run `rake -T` in your project, you'll see that `rake > spec` is just one of many other tasks you can run that do all kinds of > things, not just to do with running tests. > > RSpec is a tool

Re: [rspec-users] rake 0.9.0 activated error + debugger not working?

2011-06-07 Thread David Chelimsky
On Jun 7, 2011, at 4:21 AM, Patrick J. Collins wrote: >> Rake is a tool for running tasks of any nature, which you can invoke with >> the command `rake`. If you run `rake -T` in your project, you'll see that >> `rake spec` is just one of many other tasks you can run that do all kinds of >> thin

[rspec-users] Is "it_should_behave_like" a code smell?

2011-06-07 Thread John Feminella
Consider the following simple Rails app: begin snippet # lib/herpable.rb module Herpable; ...; end # app/models/... class ClassOne; include Herpable; end class ClassTwo; include Herpable; end # ... end snippet What's the better way to write specs for these? Would you put the

Re: [rspec-users] Is "it_should_behave_like" a code smell?

2011-06-07 Thread David Chelimsky
On Jun 7, 2011, at 10:31 AM, John Feminella wrote: > Consider the following simple Rails app: > > begin snippet > # lib/herpable.rb > module Herpable; ...; end > > # app/models/... > class ClassOne; include Herpable; end > class ClassTwo; include Herpable; end > # ... > end snipp