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
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
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.
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
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
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
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
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_
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
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.
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.
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
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
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
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
15 matches
Mail list logo