I am sure I am just missing something obvious...

I have html I am trying to verify that looks like:

<p>\n Displaying <b>1</b> user\n </p>

a test that contains

assert_tag "p",:content => /Displaying 1 user/

The assertion fails, is there something I am missing? It seems it should match 'cause I assue the bold tag is ignored? If I change the assertion to

assert_tag "p", :content => /Displaying 1*/

it passes.

I have html I am trying to verify that looks like:

<p>\n Displaying <b>1</b> user\n </p>

a test that contains

assert_tag "p",:content => /Displaying 1 user/

The assertion fails, is there something I am missing? It seems it should match 'cause I assue the bold tag is ignored?

it isn't

If I change the assertion to

assert_tag "p", :content => /Displaying 1*/

that's because that will match "Displaying "

Fred