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 factorie

Re: [rspec-users] Can someone clarify this RSpec block?

2012-02-24 Thread Matthew Van Horn
Each "it" runs in isolation. The flow is, all the "before" blocks run in order from outer to inner, before each "it" block. You can think of each "it" expectation as sending you to the start, to test another isolated expectation about the process. This is good, because a failure in one part of t