# Assert\_select VS assert\_no\_tag

**URL:** <https://www.ruby-forum.com/t/assert-select-vs-assert-no-tag/89889>\
**Category:** Rails\
**Created:** [March 23, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/assert-select-vs-assert-no-tag/89889 "2007-03-23T15:43:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 23, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/assert-select-vs-assert-no-tag/89889/1 "2007-03-23T15:43:56Z")

</div>

Hi everybody.  
Assert\_no\_tag will be deprecated soon. How can i use assert\_select for  
checking not existed tag?  
Thanks.  
Bye.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 23, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/assert-select-vs-assert-no-tag/89889/2 "2007-03-23T16:19:01Z")

</div>

Yes.

assert\_select ‘div#foo’, false

–  
Zack C.  
[http://depixelate.com](http://depixelate.com)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 26, 2007, 9:27am UTC](https://www.ruby-forum.com/t/assert-select-vs-assert-no-tag/89889/3 "2007-03-26T09:27:28Z")

</div>

Thanks
