[rspec-users] Help: Attempts to run specs quitting midstream

Matt Griffith lists at ruby-forum.com
Tue Nov 18 15:16:43 EST 2008

Matt Wynne wrote:
> It would be really helpful if you could file a bug report so that
> people can get onto fixing it:
> http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/new

Yep I'm trying to narrow it down to the simplest repro case. 
Unfortunately I can only reproduce it in my rails app. I was causing the 
problem by calling should_receive in a meaningless way:

template.should_receive(:current_user, 2).and_return(@user)

Instead of:


But the way RSpec handles this problem in my app is a bug that I'll 
submit with as much info to try and help someone narrow it down.
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list