On Sat, Mar 8, 2008 at 8:51 PM, Zach Dennis <[EMAIL PROTECTED]> wrote:
> I'm heading out of town, but had a quick thought I wanted to share.
> Rather then using ambiguous named request helpers in controller specs
> like "do_request", I've been using more readable helpers like
> "post_create".
>
On Sat, Mar 8, 2008 at 11:06 PM, Pat Maddox <[EMAIL PROTECTED]> wrote:
> I've always used do_post/do_put etc. But your way is perfectly acceptable :)
That's what I do too - but I like Zach's idea here. Do you guys think
the generated examples should use this?
David
>
> Pat
>
>
>
> On 3/8/08, Z
What about overriding method_missing in the shared example group that will
make conversions:
post_ -> post :
put_ -> put :
etc.
David posted thoughts on the before/after stuff, which is similar to what I
do :
http://blog.davidchelimsky.net/articles/2007/11/06/before_action-after_
On Sun, Mar 9, 2008 at 3:31 PM, Corey Haines <[EMAIL PROTECTED]> wrote:
> What about overriding method_missing in the shared example group that will
> make conversions:
>
> post_ -> post :
> put_ -> put :
That's fine until you start adding parameters, at which point you'd
end up ca
On Sun, Mar 9, 2008 at 4:46 AM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Sat, Mar 8, 2008 at 11:06 PM, Pat Maddox <[EMAIL PROTECTED]> wrote:
> > I've always used do_post/do_put etc. But your way is perfectly acceptable
> :)
>
> That's what I do too - but I like Zach's idea here. Do you gu
On Sat, Mar 8, 2008 at 4:37 PM, Steve <[EMAIL PROTECTED]> wrote:
> Can anyone tell me what I'm doing wrong here?
>
> it 'should try to set the current user from the session' do
> controller.session[SessionKeys::USER_ID] = 1
> user = mock_model(User)
> User.stub!(:find).and_return(user)
> U
On Sat, Mar 8, 2008 at 9:11 AM, David Chelimsky <[EMAIL PROTECTED]> wrote:
>
> On Fri, Mar 7, 2008 at 9:40 PM, Will Sargent <[EMAIL PROTECTED]> wrote:
> > One of the things I really liked about TestNG was the grouping
> > feature. Are there any plans for rSpec to incorporate that? Is there
>