Re: [rspec-users] regex help

2008-12-28 Thread Stephen Eley
On Sun, Dec 28, 2008 at 11:59 PM, Jonathan Linowes wrote: > > Perhaps tell it to ignore any matches with " item" in it, but dont know how It's called a zero-width negative lookahead, and it looks like this: /^the (?!\w+ item)(.*) should have a \<(.*)\> tag with "(.*)"/ I didn't test this to be s

Re: [rspec-users] cucumber fit step table output

2008-12-28 Thread Emmanuel Pinault
something like Given I do something with the following param |Key1|value1|, |Key2| Value2| |Key1|value1| |Key2|Value2| Then your step could look like Given 'I do something with the following .*' do | table| // your logic end Emmanuel On Dec 28, 2008, at 10:40 AM, Jonathan Linowes w

Re: [rspec-users] regex help

2008-12-28 Thread Emmanuel Pinault
Are the steps doing anything different? I mean it seems like selected| first|second are part of .* so you can put that specific logic in the step I would thing and have one step to handle them all Or then just change slightly your sentence so they don t overlap Emmanuel On Dec 28, 2008

[rspec-users] regex help

2008-12-28 Thread Jonathan Linowes
Hi, Could someone help me resolve this conflict: Then the selected item should have a tag with "Foo:" Multiple step definitions match "the selected item should have a tag with \"Foo:\"": (Cucumber::Multiple) features/step_definitions/page_builder_steps.rb:355:in `/^the (selected|fi

[rspec-users] Cucumber and FireWatir

2008-12-28 Thread aidy lewis
Hi, I have exampled Cucumber and FireWatir here: http://code.google.com/p/cucumber-and-watir/ FireWatir will run on Windows, OSX and GNU\Linux. It is on google-code as I am unfamiliar with git. Regards Aidy ___ rspec-users mailing list rspec-users@r

Re: [rspec-users] cucumber fit step table output

2008-12-28 Thread Jonathan Linowes
could you pastie an example? On Dec 28, 2008, at 1:19 PM, Emmanuel Pinault wrote: I think this is not yet implemented. I had the same issue and was told they are working on it but that they are doing a big refactoring so might not be in 0.1.13 yet To work around that issues. I created a he

[rspec-users] cucumber fit step table output

2008-12-28 Thread Jonathan Linowes
If this is a bug I'll submit a ticket. Or, maybe I'd doing something wrong. Using a Cucumber FIT Step Table, the scenario runs and passes (and fails when i put bad data in the table). But the console output only shows the Step text, not the table so when I read the output it's not telling m

Re: [rspec-users] cucumber fit step table output

2008-12-28 Thread Emmanuel Pinault
I think this is not yet implemented. I had the same issue and was told they are working on it but that they are doing a big refactoring so might not be in 0.1.13 yet To work around that issues. I created a helper method that can print the table in one line or multiple line. Then call the me

Re: [rspec-users] Cucumber speed tips

2008-12-28 Thread Josh Knowles
On Sat, Dec 27, 2008 at 12:52 PM, Ben Mabey wrote: > On 12/27/08 1:08 AM, Mischa Fierer wrote: >> >> As some of us have been using cucumber for quite a while now, I may not be >> the only one wishing his many steps ran a bit faster. >> >> Let's try to put together a quick FAQ for people looking to