Re: [rspec-users] running a specific describe block

2008-03-11 Thread James Deville
the -e option should run a describe block if the string passed matches a describe block On Feb 29, 2008, at 10:57 AM, Jay Donnell wrote: > I use a lot of nested describe blocks and am wondering if there is a > way to run a specific describe block similar to the -e option for > running spec

Re: [rspec-users] rspec groups?

2008-03-11 Thread James Deville
Using the -e option from the command line, you can also specify a string which is to be run, this is a way to run only one describe block, or one it block. The rake task method suggested by Edvard is the other option On Mar 10, 2008, at 5:42 AM, Edvard Majakari wrote: >> The idea is that y

[rspec-users] RSpec view test for :partial with :locals?

2008-03-11 Thread David Schmidt
I'm currently working on some RSpec view tests and I'm having problems with expect_render. Most of the expect_render's work fine, but in one of my views I have: <%= render :partial => "user_cloud", :locals => {:user => @featured_user} %> I see that expect_render supports ":object" or ":col

[rspec-users] [ANN] RSpactor 0.0.2 : autorun your spec files

2008-03-11 Thread rubyphunk
Hi all. I want to introduce RSpactor and its "draft" release 0.2.0. RSpactor is a little command line tool to automatically run your changed specs (much like autotest). As you may expect, it concentrates on the use of RSpec. It was especially designed to use filesystem events like FSEvent on Leopa

Re: [rspec-users] for a beginner - good rspec examples?

2008-03-11 Thread Bryan Ray
David Chelimsky's blog has a lot of good information as well. On Tue, Mar 11, 2008 at 9:06 AM, Chuck Remes <[EMAIL PROTECTED]> wrote: > > On Mar 11, 2008, at 8:52 AM, Daniel Kehoe wrote: > > > I'm learning to use rspec and I want to see some good examples. > > >

[rspec-users] [Stories]Changes in the database not taken into account

2008-03-11 Thread Bastien
I have these scenarios : Story: Filling a profile As a user I want to fill a profile So that I can see my score Scenario: Starting a new profile ...* And 3 questions ...* When the user answers a que

Re: [rspec-users] for a beginner - good rspec examples?

2008-03-11 Thread Chuck Remes
On Mar 11, 2008, at 8:52 AM, Daniel Kehoe wrote: > I'm learning to use rspec and I want to see some good examples. > > Any recommendations of open source projects that demonstrate the use > of rspec? > > So far I've found: > > 1) the Caboose sample app (http://sample.caboo.se/) > > 2) the Alt

Re: [rspec-users] Story testing views in isolation

2008-03-11 Thread Jarkko Laine
On Tue, Mar 11, 2008 at 2:39 PM, Zach Dennis <[EMAIL PROTECTED]> wrote: > +1 for keeping view specs act as view specs and stories act as stories. Agreed. AFAIK stories are for describing a series of actions and behavior and that doesn't really fit in nicely with specifying views in isolation. //

[rspec-users] for a beginner - good rspec examples?

2008-03-11 Thread Daniel Kehoe
I'm learning to use rspec and I want to see some good examples. Any recommendations of open source projects that demonstrate the use of rspec? So far I've found: 1) the Caboose sample app (http://sample.caboo.se/) 2) the Altered Beast forums app (http://beast.caboo.se/forums/1/topics/46

Re: [rspec-users] view spec on rails questions

2008-03-11 Thread Zach Dennis
For content_for blocks we have a separate "testing.html.erb" layout which we use when rendering our view from our spec. We then ensure the things generated in content_for are rendered correctly.. ie: render "foo/index", :layout => "testing" Zach On Mon, Mar 10, 2008 at 11:23 PM, Jonathan Linowes

Re: [rspec-users] Composed Stories/Scenarios

2008-03-11 Thread Rick DeNatale
On 3/11/08, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Tue, Mar 11, 2008 at 12:14 PM, Rick DeNatale <[EMAIL PROTECTED]> wrote: > > In using stories, I find myself wanting to build scenarios on top of each > other, > > > > For example > > > > I want something like > > > > Scenario: T

Re: [rspec-users] Story testing views in isolation

2008-03-11 Thread Zach Dennis
Corey, What part of the Story do you like that you want the designers to be exposed to? A higher level API, the plain text part (separation from implementation of the test), etc... ? Zach On Tue, Mar 11, 2008 at 8:39 AM, Zach Dennis <[EMAIL PROTECTED]> wrote: > On Tue, Mar 11, 2008 at 8:03 AM, C

Re: [rspec-users] Composed Stories/Scenarios

2008-03-11 Thread David Chelimsky
On Tue, Mar 11, 2008 at 12:14 PM, Rick DeNatale <[EMAIL PROTECTED]> wrote: > In using stories, I find myself wanting to build scenarios on top of each > other, > > For example > > I want something like > > Scenario: The user logs on > Given a > And b > When c > And d > Then e >And

Re: [rspec-users] Story testing views in isolation

2008-03-11 Thread Zach Dennis
On Tue, Mar 11, 2008 at 8:03 AM, Corey Haines <[EMAIL PROTECTED]> wrote: > > > On Tue, Mar 11, 2008 at 6:16 AM, David Chelimsky <[EMAIL PROTECTED]> > wrote: > > > > > The reason that I want to do this is that I want to give our > > > designer/business people a way to write stories to describe their

[rspec-users] Composed Stories/Scenarios

2008-03-11 Thread Rick DeNatale
In using stories, I find myself wanting to build scenarios on top of each other, For example I want something like Scenario: The user logs on Given a And b When c And d Then e And f Scenario: The user changes his password Given the user logs on And g Then h In other words, I

Re: [rspec-users] outside-in = integration tests on views?

2008-03-11 Thread Corey Haines
I just watched the story one on Sunday, and it was great. I bought a 5 pack and can't wait to watch the next one. -Corey On Sun, Mar 2, 2008 at 10:49 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: > > > > > > > BTW, Are the PeepCode rSpec tutorials worth buying? > > > > They are a steal. I watched th

Re: [rspec-users] Story testing views in isolation

2008-03-11 Thread Corey Haines
On Tue, Mar 11, 2008 at 6:16 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > > The reason that I want to do this is that I want to give our > > designer/business people a way to write stories to describe their user > > interface while they work on the prototype, then give us the stories to > help

Re: [rspec-users] Story testing views in isolation

2008-03-11 Thread David Chelimsky
On Tue, Mar 11, 2008 at 2:53 AM, Corey Haines <[EMAIL PROTECTED]> wrote: > 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