[rspec-users] embedding variable in a regex

aidy lewis aidy.lewis at googlemail.com
Fri Aug 8 10:18:28 EDT 2008


 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


More information about the rspec-users mailing list