Re: [rspec-users] minimise scenarios

2008-06-16 Thread aidy lewis
Thanks David, Maybe my steps are too granular and I will link them up as suggested. What I do like though is re-using steps in different domains. So I can have When "clicks '$link_text'" do | link_text | browser.link(:text, Regexp.new(link_text)).click end When "clicks on '$button_val

Re: [rspec-users] minimise scenarios

2008-06-16 Thread David Chelimsky
On Jun 16, 2008, at 6:27 AM, aidy lewis wrote: Hi, I have a number of scenarios that are virtually the same apart from one piece of test data Scenario: The user is returned search links with expected search text description Given a logged in xx user When clicks 'Advanced Search' And ente

[rspec-users] minimise scenarios

2008-06-16 Thread aidy lewis
Hi, I have a number of scenarios that are virtually the same apart from one piece of test data Scenario: The user is returned search links with expected search text description Given a logged in xx user When clicks 'Advanced Search' And enters 'Aidy' in the Contributors field An