Re: [rspec-users] Problems testing destroy method in rspec2

2010-03-29 Thread Mauricio Aniche
Hi, Is there anyone else who had this problem? Thanks, Mauricio On Thu, Mar 25, 2010 at 10:15 AM, Mauricio Aniche mauricioani...@gmail.comwrote: Hi David, I am using rspec2 beta4, which is the latest version in gemcutter. Hi Julian, The problem only happens in my spec. My rails3

[rspec-users] Spork

2010-03-29 Thread Ashley Moran
Hi Hopefully I'll get chance to finish Spork integration with RSpec 2 this weekend. I've got two questions... (1) What's the best way to merge my changes back in? My shockingly bad Git-fu has made it impossible to rebase on top of master. I suspect having a (now disabled) Textmate macro

Re: [rspec-users] Spork

2010-03-29 Thread David Chelimsky
On Mar 29, 2010, at 2:48 PM, Ashley Moran wrote: Hi Hopefully I'll get chance to finish Spork integration with RSpec 2 this weekend. I've got two questions... (1) What's the best way to merge my changes back in? My shockingly bad Git-fu has made it impossible to rebase on top of

[rspec-users] undefined method

2010-03-29 Thread kojilab
Hi My test has the following line Account.stub(:find_by_slug_and_owner_id).with(my-account, '1').and_return(mock_account) In my model, I have def self.find_by_slug_and_owner_id(slug, owner_id) [code] end But I am getting NoMethodError in 'AccountsController GET add person

Re: [rspec-users] Spork

2010-03-29 Thread steve ross
On Mar 29, 2010, at 1:04 PM, David Chelimsky wrote: On Mar 29, 2010, at 2:48 PM, Ashley Moran wrote: (2.5) Any reason why the new RSpec module is Rspec not RSpec? /grammarnazi AFAIK, autoloaders (like in Rails and Autotest), assume a CamelCase convention for class names, which RSpec

Re: [rspec-users] describe blocks without before(:all) / after(:all)

2010-03-29 Thread David Chelimsky
On Mar 29, 2010, at 10:36 PM, Jimmy Soho wrote: Hi All, We have many specs like the pattern given below. The problem is that it's slow, because each inner context block will execute the before(:all) in the outer describe block. Is there a way to setup an inner context block that does