# I am sure I am just missing something obvious

**URL:** <https://www.ruby-forum.com/t/i-am-sure-i-am-just-missing-something-obvious/158150>\
**Category:** Rails\
**Created:** [January 19, 2009, 9:21pm UTC](https://www.ruby-forum.com/t/i-am-sure-i-am-just-missing-something-obvious/158150 "2009-01-19T21:21:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bearblu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a6a055/32.png) [@bearblu](https://www.ruby-forum.com/u/bearblu)\
**Post date:** [January 19, 2009, 9:21pm UTC](https://www.ruby-forum.com/t/i-am-sure-i-am-just-missing-something-obvious/158150/1 "2009-01-19T21:21:13Z")

</div>

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

\n Displaying **1** user\n

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.

---

<div class="post-metadata">

**Author:** ![bearblu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a6a055/32.png) [@bearblu](https://www.ruby-forum.com/u/bearblu)\
**Post date:** [January 19, 2009, 10:15pm UTC](https://www.ruby-forum.com/t/i-am-sure-i-am-just-missing-something-obvious/158150/2 "2009-01-19T22:15:10Z")

</div>

On 19 Jan 2009, at 20:20, bearblu wrote:

> 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
