[DRE-maint] Bug#797972: add sprockets tests for rails engines

Antonio Terceiro terceiro at debian.org
Fri Sep 4 12:17:48 UTC 2015


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 <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20150904/5a74f205/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list