Re: [rspec-users] tutes on testing controllers

2008-03-10 Thread Pat Maddox
On Mon, Mar 10, 2008 at 2:01 PM, Oliver Barnes <[EMAIL PROTECTED]> wrote: > hello spec'ers, > > i'm in the hunt for guides on testing controllers with rspec, would > you guys recommend any? Oldie but goodie (I hope) - http://evang.eli.st/blog/2007/9/15/easy-controller-tests-and-expressing-intent

[rspec-users] tutes on testing controllers

2008-03-10 Thread Oliver Barnes
hello spec'ers, i'm in the hunt for guides on testing controllers with rspec, would you guys recommend any? thanks Oliver -- Oliver Azevedo Barnes [EMAIL PROTECTED] +55 11 9768 0193 http://www.linkedin.com/in/oliverbarnes http://workingwithrails.com/person/4704-oliver-barnes ___

[rspec-users] view spec on rails questions

2008-03-10 Thread Jonathan Linowes
Hi I have a couple of questions 1) how do you test the response inside a content_for block I see reference to it in the release notes but dont know where to find it (tried http://rspec.info/rdoc-rails/ ) 2) I dont seem to be able to stub partials in a different directory eg <%= render :

[rspec-users] Story testing views in isolation

2008-03-10 Thread Corey Haines
Hi, I've been investigating plain text stories, and I had a quick question. How would I go about creating story tests for views in isolation, instead of the full stack? I had hoped to be able to do a straight render '/', but it says it can't find the method. The reason that I want to do this is t

Re: [rspec-users] rspec groups?

2008-03-10 Thread Edvard Majakari
> The idea is that you can specify that certain tests exist in groups, > and can be run as a set. You can define groups and groups of groups, > and so you can run a set of functional tests or all the tests dealing > with a specific feature without running through the entire thing. > It's kind

Re: [rspec-users] [Stories] Login and subdomain

2008-03-10 Thread Bastien
Thanks to all of you, I added the login as a part of the story and now it works smoothly. On Mar 7, 9:35 pm, "Zach Dennis" <[EMAIL PROTECTED]> wrote: > In case it isn't clear... I agree with Ivo's statement: > > "You should not stub the authentication method in a story. The story > should test the