require 'test_helper' class MyHelperTest < ActionView::TestCase test "title" do assert_select_in '

My Awesome App

', 'h1' end test "nav" do html = '' assert_select_in html, 'div' do assert_select 'a', /home/i end end end # A more flexible and elegant solution can be found here: # http://github.com/vigetlabs/helper_me_test/tree/master