search for: during_event

Displaying 2 results from an estimated 2 matches for "during_event".

2007 Apr 11
10
DRYer controller specs
So, I''ve been following the recommendations for controller specs here: http://blog.davidchelimsky.net/articles/2006/11/09/tutorial-rspec-stubs-and-mocks Most notably: a single expectation per specify block; the setup block contains only stubs; mock expectations each get their own specify block. (I''m still using 0.8, so I haven''t gotten the describe/it goodness yet.) I
2007 Apr 27
0
it "should ...", encouraging "should" via it_should
On 4/27/07, David Chelimsky <dchelimsky at gmail.com> wrote: > Any other suggestions? > > In general, I''m much more inclined to favor an additional parameter > passed to #it over a new method name. Since I suggested in the other thread that perhaps during_event and on_event could append text to the spec string, here''s another similar (but simpler) suggestion that''s been in my mind for a while. it_should could automatically add "should" to the spec string. At first, the "it" syntax left me feeling a bit weird. I like...