Re: [rspec-users] expect_render, why does there need to be a warning

2007-08-15 Thread Zach Dennis
On 8/15/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 8/15/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > On 8/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > On 8/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > > > On 8/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > > On

Re: [rspec-users] nuby: how spec redirect_to at ApplicationController

2007-08-15 Thread David Chelimsky
On 8/15/07, Courtenay <[EMAIL PROTECTED]> wrote: > On 8/15/07, Priit Tamboom <[EMAIL PROTECTED]> wrote: > > describe ApplicationController do > >it "method login_required should redirect to home path without login" do > > heh. "it" is so out of place here :) I agree. The goal is to describe

Re: [rspec-users] ActsAsList specs

2007-08-15 Thread Courtenay
On 8/15/07, Steve Tooke <[EMAIL PROTECTED]> wrote: > Hi, > > How are people specifying models which act_as_list? > > I'm thinking that it would be possible to check that acts_as_list > instance methods have been added to a class using something like this: You're specing the code not the behavior.

Re: [rspec-users] expect_render, why does there need to be a warning

2007-08-15 Thread David Chelimsky
On 8/15/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > On 8/15/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 8/15/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > > On 8/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > On 8/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > > > > On 8/1

Re: [rspec-users] expect_render, why does there need to be a warning

2007-08-15 Thread David Chelimsky
On 8/15/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > On 8/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 8/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > > On 8/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > On 8/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > > > > There

[rspec-users] restful named routes

2007-08-15 Thread Jonathan Linowes
Hi, revisiting this issue, I feel I'm getting closer: describe CommentsController, "named routes" do before do @post = mock_model(Post, :id => 22) end it "should generate post_comments_path" do controller.post_comments_path(@post).should == "/posts/22/comments" end end resu

Re: [rspec-users] nuby: how spec redirect_to at ApplicationController

2007-08-15 Thread Courtenay
On 8/15/07, Priit Tamboom <[EMAIL PROTECTED]> wrote: > Good morning rspec people! > > Still rspec nuby: I must do something wrong obviously. > > How can I spec about redirect_to at ApplicationController > > describe ApplicationController do >it "method login_required should redirect to home pat

[rspec-users] nuby: how spec redirect_to at ApplicationController

2007-08-15 Thread Priit Tamboom
Good morning rspec people! Still rspec nuby: I must do something wrong obviously. How can I spec about redirect_to at ApplicationController describe ApplicationController do it "method login_required should redirect to home path without login" do pending "I tried to use controller.login_

Re: [rspec-users] expect_render, why does there need to be a warning

2007-08-15 Thread Zach Dennis
On 8/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 8/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > On 8/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > On 8/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > > > There is a warning on the web site about expect_render and stub_ren

Re: [rspec-users] Extra Options to Heckle

2007-08-15 Thread Scott Taylor
On Aug 15, 2007, at 8:11 AM, Scott Taylor wrote: > > On Aug 15, 2007, at 7:57 AM, aslak hellesoy wrote: > >> On 8/15/07, Scott Taylor <[EMAIL PROTECTED]> wrote: >>> >>> I've tried running Heckle with rspec on some of my classes, but keep >>> getting (what I believe to be) an infinite recursion.

Re: [rspec-users] Extra Options to Heckle

2007-08-15 Thread Scott Taylor
On Aug 15, 2007, at 7:57 AM, aslak hellesoy wrote: > On 8/15/07, Scott Taylor <[EMAIL PROTECTED]> wrote: >> >> I've tried running Heckle with rspec on some of my classes, but keep >> getting (what I believe to be) an infinite recursion. Is there some >> way to supply extra options to heckle via.

Re: [rspec-users] Extra Options to Heckle

2007-08-15 Thread aslak hellesoy
On 8/15/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > > I've tried running Heckle with rspec on some of my classes, but keep > getting (what I believe to be) an infinite recursion. Is there some > way to supply extra options to heckle via. rspec? > Currently not. What options do you want to suppl

[rspec-users] ActsAsList specs

2007-08-15 Thread Steve Tooke
Hi, How are people specifying models which act_as_list? I'm thinking that it would be possible to check that acts_as_list instance methods have been added to a class using something like this: describe Page, "acts_as_list" do it "should act as a list" do Page.ancestors.should be_include(Ac

[rspec-users] Extra Options to Heckle

2007-08-15 Thread Scott Taylor
I've tried running Heckle with rspec on some of my classes, but keep getting (what I believe to be) an infinite recursion. Is there some way to supply extra options to heckle via. rspec? Scott ___ rspec-users mailing list rspec-users@rubyforge.org

[rspec-users] active_scaffold partials

2007-08-15 Thread Jonathan Linowes
An issue I've run into is with a controller using the active_scaffold plugin, which injects a method that modifies the search path for partial files. When I try to run a spec on a a_s partial it reports the file cannot be found. I think this is the a_s code that does it but I'm not sure wher