i have a non active_record class in models dir which is like following:
i want to test this class,so manually defined a test file which is like
class BuildSurveyTest < ActiveSupport::TestCase
but when i ran test,i got error like this:
undefined method '<' nil:NilClass
i want to know how to test a non active_record class in models directory
in rails 3.can you help me?