Note that to interpolate, the sequences must be inside single quotes:
# replace /ll/ with itself
'hello'.gsub(/ll/, '\0') # returns 'hello'
'hello'.gsub(/ll/, "\0") # returns 'he\000o'
If you have a string containing html and want to assert_select
against it, as the doc states you have to pass in an element (HTML::Node) as the first argument. You can do
something like this:
doc = HTML::Document.new('<p><span>example</span></p>')
assert_select doc.root, 'span'
APIdock release: IRON STEVE (1.4)
If you have any comments, ideas or feedback, feel free to contact us at
APIdock copyright Nodeta Oy 2008-2015
Flowdock is a collaboration tool for technical teams. Version control, project management, deployments and your group chat in one place.