On Fri, Aug 8, 2008 at 10:18 AM, aidy lewis <[EMAIL PROTECTED]> wrote:
> Given /a (PROGRAM|PROGRAMMES) title of '$title'/ do |title|
>
> end
>
> Could anyone give me the correct syntax for embedding this variable in a
> regex?
You'll need to create a sub-expression capturing the title.
Given /a (PROGRAM|PROGRAMMES) title of '$title'/ do |title|
end
Could anyone give me the correct syntax for embedding this variable in a regex?
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinf