I have a gem that uses some of the Rails libs, including action_view
and active_controller
. Though I require those libs, all tests fail when trying to call some has_text?
method, which (as I found out) is part of'rexml/element'
lib. Here's what I get:
undefined method `has_text?' for "<b>Hello,<i>world</b></i>":String
Requiring 'rexml/element' does not solve the issue, got the same error. So, the question is - what should I require?