On Fri, Sep 04, 2015 at 10:18:15AM +0530, Pirate Praveen wrote:
> package: gem2deb
> version: 0.20.2
> severity: wishlist
> 
> A simple test like this can test if the asset is installed correctly
> 
> rails new foo
> cd foo
> echo "//= require asset >> app/assets/javascripts/application.js
> bundle exec rake assets:precompile

you can use sprockets directly instead of a full rails app. check
debian/tests/smoke-test in ruby-bootstrap-sass for an example.

> there should be an option --check-assets to gem2deb test runner and if
> the gem name starts with rails-assets or ends with rails it should be
> enabled by default.

assuming that deriving the asset name from the package name will
actually work, there are also quite a few details to get right, such as
adding the necessary build dependencies, and handling the paths when
running during build vs running on autopkgtest (and thus with the
package already instaled) etc.

-- 
Antonio Terceiro <terce...@debian.org>

Attachment: signature.asc
Description: Digital signature

Reply via email to