Test your rails helpers

This evening I tried to get my test coverage up a bit by making tests of the helper classes using Geoffrey Grosenbach’s Test Your Helpers instructions. But I couldn’t get it to work. Has anyone used it? Does it work? Or is there some other way?

Testing the helpers is the last big thing left to get to the unreachable 100% test coverage. So naturally I want to solve it!

3 reaktion på “Test your rails helpers”

  1. require File.dirname(FILE) + ‘/../test_helper’ require ‘user_helper’

    class UserHelperTest < Test::Unit::TestCase

    include UserHelper

    def test_a_user_helper_method_here end

    end

Kommentera