ruby on rails - Should features from gems be tested inside applications using them? -
i working on rails 4 project. naturally there gems use add features application.
one of these gems pg_search gem.
i use add search scope user model.
class user < activerecord::base include pgsearch pg_search_scope :search, against: [:email], using: :tsearch end
the internal workings of such scope tested within gem.
so question is, should feature tested within application well? , if how such test like?
testing gem bit insulting, gem has presumably been thoroughly tested developers/contributors. there nothing wrong, however, testing how gem's features work own code. excellent question though!
Comments
Post a Comment