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

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -