Re: [rspec-users] [Cucumber, BDD] When not to use Cucumber?

2009-01-23 Thread Brent Snook
I've been using story runner for the first time over the past 4 months or so and I've found the invaluable part to be the plain text support. Having a shared artifact that can be used by the customer, developers and testers is a huge boost towards achieving ubiquitous language. We use the story kic

[rspec-users] nokogiri selector help

2009-01-23 Thread Jonathan Linowes
hiya, i want the selector that would return a of a table if any td contains some text, so i can use it in click_link_within e.g. When I click the "show" link within the row containing "u...@example.com" When /^I click the "(.+)" link within the row containing "(.+)"$/ do | link, text|

Re: [rspec-users] [Cucumber, BDD] When not to use Cucumber?

2009-01-23 Thread Nick Hoffman
On 23/01/2009, at 12:04 PM, Ben Mabey wrote: So... I'm curious what people's thoughts are. When writing acceptance tests how do you choose which tool is best for the job? I often hear people complaining about the GWT syntax and they see no benefit of it over the frameworks that provide con

Re: [rspec-users] [Cucumber, BDD] When not to use Cucumber?

2009-01-23 Thread James Byrne
Fernando Perez wrote: >> My own experience is quite limited, [...] > > Hi James, are you saying that you only use Cucumber and not RSpec at > all? No, I do use RSpec and TestUnit for that matter, but not to any extent at the present time. I find that cucumber features are much more conducive

Re: [rspec-users] [Cucumber, BDD] When not to use Cucumber?

2009-01-23 Thread Fernando Perez
> My own experience is quite limited, [...] Hi James, are you saying that you only use Cucumber and not RSpec at all? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: [rspec-users] [Cucumber, BDD] When not to use Cucumber?

2009-01-23 Thread James Byrne
Ben Mabey wrote: > > So... I'm curious what people's thoughts are. When writing acceptance > tests how do you choose which tool is best for the job? I often hear > people complaining about the GWT syntax and they see no benefit of it > over the frameworks that provide contexts (i.e rspec, shoul

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-23 Thread James Byrne
Andrew Premdas wrote: > Have you tried setting the CUCUMBER_COLORS environment variable in your > bash config on cygwin? James Byrne wrote: > I am working around this by manually setting the session environment > variable and I could make this solution permanent by altering > my .bashrc script.

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-23 Thread Andrew Premdas
Have you tried setting the CUCUMBER_COLORS environment variable in your bash config on cygwin? 2009/1/23 James Byrne > My original observation wrt this problem was inaccurate. The same > behaviour is evidenced in both my Linux and cygwin environments. > Setting the environment variable "CUCUMB

Re: [rspec-users] testing javascript-heavy websites

2009-01-23 Thread Pau Cor
> I have had some trouble > with ajax-heavy stuff but never took the time to sort it out. I had some trouble too at first. Some things that seem like they _should_ work just don't. But I seem to have gotten past it. If anyone has a specific problem post here, and I'll give it a try :) Or you c

[rspec-users] [Cucumber, BDD] When not to use Cucumber?

2009-01-23 Thread Ben Mabey
Hi all, Just wanted to get some feedback and opinions on something... I have been using Cucumber/Story Runner since plaintext support was introduced. (So, since October/November of 2007.) Throughout this time I have used it on various projects. Some projects had customer involvement in help

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-23 Thread aslak hellesoy
On Fri, Jan 23, 2009 at 3:40 PM, James Byrne wrote: > Josh Chisholm wrote: > > We are setting environment variables in our Rakefile. We have various > > tasks that set up environment variables, then call the cucumber task. > > That's working for us under windows. > > Yes that makes sense. Referri

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-23 Thread James Byrne
Josh Chisholm wrote: > We are setting environment variables in our Rakefile. We have various > tasks that set up environment variables, then call the cucumber task. > That's working for us under windows. Yes that makes sense. Referring to the Pickaxe book one reads that: "A Ruby program may write

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-23 Thread aslak hellesoy
On Fri, Jan 23, 2009 at 3:20 PM, James Byrne wrote: > My original observation wrt this problem was inaccurate. The same > behaviour is evidenced in both my Linux and cygwin environments. > Setting the environment variable "CUCUMBER_COLORS" in support/env.rb run > does not alter the behaviour of

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-23 Thread James Byrne
My original observation wrt this problem was inaccurate. The same behaviour is evidenced in both my Linux and cygwin environments. Setting the environment variable "CUCUMBER_COLORS" in support/env.rb run does not alter the behaviour of that run. As one expects, any environment variable set wit

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-23 Thread Luis Lavena
On Fri, Jan 23, 2009 at 8:47 AM, Andrew Premdas wrote: > Luis > > Not quite sure that your criticism is of my post is justified. At no point > did I say that James should give up on Windows nor give up on Cygwin, only > that it is very difficult to get the terminal colors to work exactly how you >

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-23 Thread Josh Chisholm
We are setting environment variables in our Rakefile. We have various tasks that set up environment variables, then call the cucumber task. That's working for us under windows. On Thu, Jan 22, 2009 at 7:21 PM, James Byrne wrote: > James Byrne wrote: > >> >> When I run rake features this works exa

Re: [rspec-users] Reorganize documentation for Cucumber at Github

2009-01-23 Thread aslak hellesoy
On Fri, Jan 23, 2009 at 12:14 PM, aidy lewis wrote: > Hi > On 23/01/2009, aslak hellesoy wrote: > > > > 18) How to use Cukes with non-Ruby platforms (Watir family, > > I will gladly put something together on Cucumber and Watir. > Be my guest! Please also link to the Watir examples in the so

Re: [rspec-users] Reorganize documentation for Cucumber at Github

2009-01-23 Thread aidy lewis
Hi On 23/01/2009, aslak hellesoy wrote: > > 18) How to use Cukes with non-Ruby platforms (Watir family, I will gladly put something together on Cucumber and Watir. Aidy ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/m

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-23 Thread Andrew Premdas
Luis Not quite sure that your criticism is of my post is justified. At no point did I say that James should give up on Windows nor give up on Cygwin, only that it is very difficult to get the terminal colors to work exactly how you want in that environment. This is based on considerable experience

Re: [rspec-users] Reorganize documentation for Cucumber at Github

2009-01-23 Thread aslak hellesoy
On Sun, Jan 18, 2009 at 2:24 AM, aslak hellesoy wrote: > > > On Sun, Jan 18, 2009 at 1:34 AM, aslak hellesoy > wrote: > >> >> >> On Sat, Jan 17, 2009 at 10:10 PM, Tom Cloyd wrote: >> >>> Fernando Perez wrote: >>> Hi, I actually just noticed that Cucumber has plenty good documentat