Re: [rspec-users] testing around_save

2012-02-24 Thread apneadiving
Hi David and thanks again, I run Rspec 2.8.0. and just upgraded from Rails 3.0.10 to Rails 3.2.1. I must admit, the spec wasn't clean. But it was quick and easy... Of course I keep your advice in mind, I just have to adapt to my particular case: * I work on a legacy and untested app, so

[rspec-users] testing around_save

2012-02-23 Thread apneadiving
I've just upgraded to Rails 3.2.1 and I can't get my specs checking whether or not around_save work anymore. I simply did something like: object.should_receive :around_filter_name object.save.should be_true (Actually, it was slightly more complex, it's part of a state machine)

Re: [rspec-users] testing around_save

2012-02-23 Thread David Chelimsky
On Feb 23, 2012, at 3:36 PM, apneadiving wrote: I've just upgraded to Rails 3.2.1 and I can't get my specs checking whether or not around_save work anymore. What version did you upgrade from? Anything else change in the process? I simply did something like: object.should_receive