[Ruby] matching spaces as \s+ in assert_select

Laurel Fan laurel.fan at gmail.com
Thu Dec 6 11:23:06 PST 2007


On Dec 5, 2007 10:52 AM, Laurel Fan <laurel.fan at gmail.com> wrote:
>     assert_select 'h3', Regexp.new("Wants to do 1 thing".gsub!(/\s+/, '\s+'))

Oh yeah, I totally don't want a ! in there...


-- 
Laurel Fan
http://blog.gorgorg.org


More information about the Ruby mailing list