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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -