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

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -