How to access View helper in integration test in Rails?
<p>I have following code in my Rails view </p>

<pre><code> &lt;li&gt;&lt;span class="list-group-item-bullet"&gt;&lt;%= icon('eye') %&gt;&lt;/span&gt;
</code></pre>

<p>which generates following HTML:</p>

<pre><code>&lt;li&gt;&lt;span class="list-group-item-bullet"&gt;&lt;i class="fa fa-eye"&gt;&lt;/i&gt;&lt;/span&gt;
</code></pre>

<p>I want to verify this thing in my integration test and I am using the following code which is generating an error</p>

<pre><code> assert_select 'li' do
   assert_select 'span.list-group-item-bullet', 'i.fa fa-eye'
 end
</code></pre>

<p>How can I verify it in my integration test?</p>