In rails 3 you can do this (and in fact it's what the generator creates):
require 'test_helper'
class YourHelperTest < ActionView::TestCase
test "should work" do
assert_equal "result", your_helper_method
end
end
And of course the rspec variant by Matt Darby works in rails 3 too
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…