# Assert\_select\_email and rails 2.3.2

**URL:** <https://www.ruby-forum.com/t/assert-select-email-and-rails-2-3-2/163414>\
**Category:** Rails\
**Created:** [March 20, 2009, 2:04am UTC](https://www.ruby-forum.com/t/assert-select-email-and-rails-2-3-2/163414 "2009-03-20T02:04:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![silent\_Se](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@silent\_Se](https://www.ruby-forum.com/u/silent_Se)\
**Post date:** [March 20, 2009, 2:04am UTC](https://www.ruby-forum.com/t/assert-select-email-and-rails-2-3-2/163414/1 "2009-03-20T02:04:14Z")

</div>

Is anyone else getting “undefined method ‘assert\_select\_email’” when  
testing in rails 2.3.2?

I saw a comment on the Core list that it appeared to have regressed in  
a recent RC but no one followed up on it.

(e)

---

<div class="post-metadata">

**Author:** ![silent\_Se](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@silent\_Se](https://www.ruby-forum.com/u/silent_Se)\
**Post date:** [April 3, 2009, 12:40am UTC](https://www.ruby-forum.com/t/assert-select-email-and-rails-2-3-2/163414/2 "2009-04-03T00:40:48Z")

</div>

I found a “fix” (more a workaround) for this. Just add the following  
line to the class in test\_helper.rb

include ActionController::Assertions::SelectorAssertions

Hopefully this gets fixed in an upcoming release.

(e)
