title: Testing view helpers
body: <p>I'm currently working on a Rails plugin used for generating iPhone specific HTML meta-tags. I'm trying to use ActionView::TestCase for unit tests but keep getting the same error. See file contents and error below. Any ideas or help would be much appreciated.</p>
  
  <p><strong>test_helper.rb</strong></p>
  
  <pre><code>require 'rubygems'
  require 'test/unit'
  require 'active_support'
  require 'action_view'
  require File.join(File.dirname(__FILE__), '..', 'lib', 'iphone_helper')
  </code></pre>
  
  <p><strong>iphone_test_helper.rb</strong></p>
  
  <pre><code>require 'test_helper'
  
  class IphoneHelperTest &lt; ActionView::TestCase
    test 'br' do
      tag = tag('br')
      assert_tag_in tag, '&lt;br /&gt;'
    end
  end
  </code></pre>
  
  <p><strong>error</strong></p>
  
  <pre><code>RuntimeError: In order to use #url_for, you must include routing helpers explicitly. For instance, `include Rails.application.routes.url_helpers
  </code></pre>