Re: [rspec-users] Getting past my login system

2007-07-16 Thread Ryan Tucker
Daniel N wrote: > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > wrote: > > Daniel N wrote: > > > > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > > >>

Re: [rspec-users] Getting past my login system

2007-07-16 Thread Daniel N
On 7/17/07, Ryan Tucker <[EMAIL PROTECTED]> wrote: Daniel N wrote: > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > wrote: > > Daniel N wrote: > > > > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > >

Re: [rspec-users] Getting past my login system

2007-07-16 Thread Ryan Tucker
Daniel N wrote: > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > wrote: > > Daniel N wrote: > > > > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > > >>

Re: [rspec-users] Getting past my login system

2007-07-16 Thread Scott Taylor
You'll probably want to stub the method 'find' on the user class, with a user mock: before :each do @user = mock_model User User.stub!(:find).and_return @user end Then you can do the post on the controller you are spec'ing You should also search the mailing list - this question has been

Re: [rspec-users] Getting past my login system

2007-07-16 Thread Daniel N
On 7/17/07, Ryan Tucker <[EMAIL PROTECTED]> wrote: Daniel N wrote: > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > wrote: > > Daniel N wrote: > > > > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > >

Re: [rspec-users] Getting past my login system

2007-07-16 Thread Ryan Tucker
Daniel N wrote: > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > wrote: > > Daniel N wrote: > > > > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > > >>

Re: [rspec-users] Getting past my login system

2007-07-16 Thread Daniel N
On 7/17/07, Ryan Tucker <[EMAIL PROTECTED]> wrote: Daniel N wrote: > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > wrote: > > Ryan Tucker wrote: > > Thank you in advance for your help. I am relatively new to both > Rails > > and Rspec and I am ho

Re: [rspec-users] Getting past my login system

2007-07-16 Thread Ryan Tucker
Daniel N wrote: > > > On 7/17/07, *Ryan Tucker* <[EMAIL PROTECTED] > > wrote: > > Ryan Tucker wrote: > > Thank you in advance for your help. I am relatively new to both > Rails > > and Rspec and I am hoping for some insight from some experienced > vet

Re: [rspec-users] Getting past my login system

2007-07-16 Thread Daniel N
On 7/17/07, Ryan Tucker <[EMAIL PROTECTED]> wrote: Ryan Tucker wrote: > Thank you in advance for your help. I am relatively new to both Rails > and Rspec and I am hoping for some insight from some experienced veterans. > > Right now I am using Rspec for code that has already been written so > t

Re: [rspec-users] Getting past my login system

2007-07-16 Thread Ryan Tucker
Ryan Tucker wrote: > Thank you in advance for your help. I am relatively new to both Rails > and Rspec and I am hoping for some insight from some experienced veterans. > > Right now I am using Rspec for code that has already been written so > that additional functionality can be developed using

[rspec-users] Getting past my login system

2007-07-16 Thread Ryan Tucker
Thank you in advance for your help. I am relatively new to both Rails and Rspec and I am hoping for some insight from some experienced veterans. Right now I am using Rspec for code that has already been written so that additional functionality can be developed using the BDD method. My proble

Re: [rspec-users] Accessing content_for html in view specs?

2007-07-16 Thread Tom Stuart
On 16 Jul 2007, at 12:14, Marcus Crafter wrote: > On 16/07/2007, at 9:11 PM, Tom Stuart wrote: >> On 16 Jul 2007, at 12:02, Marcus Crafter wrote: >>> <% content_for :blah do %> . <% end %> >>> It ends up in @content_for_blah, doesn't it? > I thought it did too, but that's a nil reference in the

Re: [rspec-users] Accessing content_for html in view specs?

2007-07-16 Thread Marcus Crafter
On 16/07/2007, at 9:11 PM, Tom Stuart wrote: > On 16 Jul 2007, at 12:02, Marcus Crafter wrote: >> <% content_for :blah do %> . <% end %> >> Has anyone worked out a way to be able to access the html that's >> generated inside those blocks? > > It ends up in @content_for_blah, doesn't it? I tho

Re: [rspec-users] Accessing content_for html in view specs?

2007-07-16 Thread Tom Stuart
On 16 Jul 2007, at 12:02, Marcus Crafter wrote: > <% content_for :blah do %> . <% end %> > Has anyone worked out a way to be able to access the html that's > generated inside those blocks? It ends up in @content_for_blah, doesn't it? ___ rspec-users

Re: [rspec-users] Accessing content_for html in view specs?

2007-07-16 Thread David Chelimsky
On 7/16/07, Marcus Crafter <[EMAIL PROTECTED]> wrote: > Hi All, > > Hope all is going well. > > I've got a few views that create some content using 'content_for' blocks > > <% content_for :blah do %> > . > <% end %> > > Has anyone worked out a way to be able to access the html that's >

[rspec-users] Accessing content_for html in view specs?

2007-07-16 Thread Marcus Crafter
Hi All, Hope all is going well. I've got a few views that create some content using 'content_for' blocks <% content_for :blah do %> . <% end %> Has anyone worked out a way to be able to access the html that's generated inside those blocks? Since they're not part of the view, have