On 7/6/07, Marcus Crafter <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Anyone noticed that using the newer link_to syntax in edge currently
> fails with mocked objects in view specs or helpers.
>
> eg. if you have something like the following in your view (or
> equivalent in a helper):
>
> <%=
On 7/3/07, Daniel N <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm very new to rspec, so if this is not the right forum please let me
> know.
>
> I'm starting to spec my models first in an existing rails app, porting from
> a mix of Test::Unit, and simply_bdd amongst others.
>
> I'm at the point where
On 7/5/07, Daniel N <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm very new to rspec so please be patient with me.
>
> I've tried to take some of my tests out of the controller specs to check for
> things that are rendered.
>
> This has not worked so well, since my views have the controller method
>
> cu
On 7/6/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
On 7/5/07, Daniel N <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm very new to rspec so please be patient with me.
>
> I've tried to take some of my tests out of the controller specs to check
for
> things that are rendered.
>
> This has not worked
On 7/6/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
On 7/3/07, Daniel N <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm very new to rspec, so if this is not the right forum please let me
> know.
>
> I'm starting to spec my models first in an existing rails app, porting
from
> a mix of Test::Unit, a
On 7/6/07, Daniel N <[EMAIL PROTECTED]> wrote:
>
>
>
> On 7/6/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > On 7/3/07, Daniel N <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I'm very new to rspec, so if this is not the right forum please let me
> > > know.
> > >
> > > I'm starting to spec
On 7/6/07, Daniel N <[EMAIL PROTECTED]> wrote:
On 7/6/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
>
> On 7/5/07, Daniel N <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm very new to rspec so please be patient with me.
> >
> > I've tried to take some of my tests out of the controller specs to
On 7/6/07, Daniel N <[EMAIL PROTECTED]> wrote:
> On 7/6/07, Daniel N <[EMAIL PROTECTED]> wrote:
> > On 7/6/07, David Chelimsky < [EMAIL PROTECTED]> wrote:
> > > On 7/5/07, Daniel N <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I'm very new to rspec so please be patient with me.
> > > >
> >
On 7/6/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
On 7/6/07, Daniel N <[EMAIL PROTECTED]> wrote:
> On 7/6/07, Daniel N <[EMAIL PROTECTED]> wrote:
> > On 7/6/07, David Chelimsky < [EMAIL PROTECTED]> wrote:
> > > On 7/5/07, Daniel N <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I'm ve
I just read 'Mocks Aren't Stubs' and was intrigued by the notion of
'outside-in' TDD.
As a Rails developer, I'm curious if others are employing this method
when developing Rails applications using RSpec. Is it common practice
(or even practical) to drive the development of a Rails app by
starting
On 7/6/07, Jed Hurt <[EMAIL PROTECTED]> wrote:
> I just read 'Mocks Aren't Stubs' and was intrigued by the notion of
> 'outside-in' TDD.
>
> As a Rails developer, I'm curious if others are employing this method
> when developing Rails applications using RSpec. Is it common practice
> (or even pract
Hi there
I have several view specs, that include the following snippet in
their "before" block to stub the methods by acts_as_authenticated
before :each do
@u = mock_model(User)
@u.should_receive(:name).and_return("Hans Muster")
template.should_receive(:logged_in?).and_return(
Cool. I'll have to give it a try on my next project.
On 7/6/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On 7/6/07, Jed Hurt <[EMAIL PROTECTED]> wrote:
> > I just read 'Mocks Aren't Stubs' and was intrigued by the notion of
> > 'outside-in' TDD.
> >
> > As a Rails developer, I'm curious if oth
On 7/6/07, Daniel N <[EMAIL PROTECTED]> wrote:
>
>
>
> On 7/6/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > On 7/6/07, Daniel N <[EMAIL PROTECTED]> wrote:
> > > On 7/6/07, Daniel N <[EMAIL PROTECTED]> wrote:
> > > > On 7/6/07, David Chelimsky < [EMAIL PROTECTED]> wrote:
> > > > > On 7/5/07, Da
On 7/6/07, Jens-Christian Fischer <[EMAIL PROTECTED]> wrote:
> Hi there
>
> I have several view specs, that include the following snippet in
> their "before" block to stub the methods by acts_as_authenticated
>
>before :each do
> @u = mock_model(User)
> @u.should_receive(:name).and_re
>>
>> I don't have enough rspec_fu to deduce where the problem lies..
>>
>>
>> Any helpers?
>
> In a nutshell - Rails compiles templates the first time they are
> encountered in a given runtime. Combine this with the fact that mock
> expectations are cleared out after every example, but the mock
>
On 7/6/07, Jens-Christian Fischer <[EMAIL PROTECTED]> wrote:
> >>
> >> I don't have enough rspec_fu to deduce where the problem lies..
> >>
> >>
> >> Any helpers?
> >
> > In a nutshell - Rails compiles templates the first time they are
> > encountered in a given runtime. Combine this with the fact
17 matches
Mail list logo