ruby on rails - What is the best way to test activeadmin classes? -
i have simple activeadmin class looks this:
activeadmin.register post actions :index index index_columns end csv index_columns end def index_columns column "id" |sp| sp.id end end end
how best test code? write integrations specs capybara or maybe there other way?
general idea behind testing gem's functionality - you don't test it.
gems (usually) tested.
Comments
Post a Comment