Re: [rspec-users] Cucumber Scenario syntax

2010-02-27 Thread aslak hellesoy
On Sat, Feb 27, 2010 at 5:17 AM, Ed Howland wrote: > Hi, > > Searched for this everywhere, so here goes. > > I am having trouble matching multiline strings with leading whitespace > in them using the """ operator. > > Cucumber intentionally removes all the space characters left of the leftmost tr

Re: [rspec-users] Cucumber Scenario syntax

2010-02-26 Thread Ed Howland
Hi, Searched for this everywhere, so here goes. I am having trouble matching multiline strings with leading whitespace in them using the """ operator. E.g. Then the output should be """ Usage: mygem [options] destination Template Options: -r, --ruby install t

Re: [rspec-users] Cucumber Scenario syntax

2008-09-17 Thread Jonathan Linowes
On Sep 12, 2008, at 4:01 PM, Joseph Wilk wrote: Evan David Light wrote: On Sep 12, 2008, at 12:26 PM, David Chelimsky wrote: I believe that binding the table to the phrasing would be immensely useful and perhaps even crucial to Scenario authors. Can you give an example of how this wo

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
On Sep 12, 2008, at 4:01 PM, Joseph Wilk wrote: I agree there is difficulty with FIT values and bindings. I find using good descriptive columns names really helps Couldn't agree more there. and quoting bound values in the plain text. I find this much easier to match up: Given a 'Widget' Wh

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Joseph Wilk
Evan David Light wrote: > On Sep 12, 2008, at 12:26 PM, David Chelimsky wrote: > >>> I believe that binding the table to the phrasing would be >>> immensely >>> useful and perhaps even crucial to Scenario authors. >> >> Can you give an example of how this would be helpful? >> > > I'll try

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
On Sep 12, 2008, at 12:26 PM, David Chelimsky wrote: I believe that binding the table to the phrasing would be immensely useful and perhaps even crucial to Scenario authors. Can you give an example of how this would be helpful? I'll try. Let's define a couple of roles for, the sake

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread David Chelimsky
On Fri, Sep 12, 2008 at 11:19 AM, Evan David Light <[EMAIL PROTECTED]> wrote: > > On Sep 12, 2008, at 12:14 PM, David Chelimsky wrote: > >> What you're proposing might look this: >> >> Scenario: division >> Given a numerator >> And a denominator >> Then the calculator should provide a quotient >

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
On Sep 12, 2008, at 12:19 PM, David Chelimsky wrote: On Fri, Sep 12, 2008 at 11:16 AM, Evan David Light <[EMAIL PROTECTED]> wrote: On Sep 12, 2008, at 11:50 AM, David Chelimsky wrote: I commented on your blog. Yup, I know. I know very well who you are, David. ;-) I've seen you speak

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread David Chelimsky
On Fri, Sep 12, 2008 at 11:16 AM, Evan David Light <[EMAIL PROTECTED]> wrote: > > On Sep 12, 2008, at 11:50 AM, David Chelimsky wrote: > >> I commented on your blog. > > > Yup, I know. I know very well who you are, David. ;-) I've seen you speak > a few times and even chatted with you briefly out

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
On Sep 12, 2008, at 12:14 PM, David Chelimsky wrote: What you're proposing might look this: Scenario: division Given a numerator And a denominator Then the calculator should provide a quotient |numerator|denominator|quotient| This will put some constraints on the phrasing that might be a

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
On Sep 12, 2008, at 11:50 AM, David Chelimsky wrote: I commented on your blog. Yup, I know. I know very well who you are, David. ;-) I've seen you speak a few times and even chatted with you briefly outside RailsConf '08 about this crazy idea that I had to redo RSpec Plain Text Stories

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread David Chelimsky
On Fri, Sep 12, 2008 at 11:04 AM, Evan David Light <[EMAIL PROTECTED]> wrote: > > On Sep 12, 2008, at 11:51 AM, David Chelimsky wrote: > >> Please keep in mind that this is an *additional* way to do things - >> you can still write your steps exactly as you do in Story Runner, >> using regexps. > >

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread David Chelimsky
On Fri, Sep 12, 2008 at 10:35 AM, Evan David Light <[EMAIL PROTECTED]> wrote: > Last night, I gave a presentation to the DC Ruby Users Group > (http://dcrug.org) on Plain Text Stories with Ruby. I spoke on both RSpec > Plain Text Stories, which I have used, and Cucumber which I started to dig > in

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
On Sep 12, 2008, at 11:51 AM, David Chelimsky wrote: Please keep in mind that this is an *additional* way to do things - you can still write your steps exactly as you do in Story Runner, using regexps. Ah, good point. I missed that nuance in your comment on my blog. Perhaps the presence of

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread David Chelimsky
On Fri, Sep 12, 2008 at 10:35 AM, Evan David Light <[EMAIL PROTECTED]> wrote: > Last night, I gave a presentation to the DC Ruby Users Group > (http://dcrug.org) on Plain Text Stories with Ruby. I spoke on both RSpec > Plain Text Stories, which I have used, and Cucumber which I started to dig > in

Re: [rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Pat Maddox
I agree. Seems much more useful to me to think of the first one as being a template that stuff gets plugged in to. Pat ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Cucumber Scenario syntax

2008-09-12 Thread Evan David Light
Last night, I gave a presentation to the DC Ruby Users Group (http://dcrug.org ) on Plain Text Stories with Ruby. I spoke on both RSpec Plain Text Stories, which I have used, and Cucumber which I started to dig into a couple of nights ago. You can see the presentation here (http://evan.tigge