defunkt/mustache — Issue #109: Tests fail with 1.9.1
Author: martin-ueding
Created: 2011-10-08 18:33:26+00:00
State: open

I try to package this in Debian, I get the following error during the build phase:

/usr/bin/ruby1.8 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
Loaded suite debian/ruby-tests
Started
.......................................................................................
Finished in 0.272213 seconds.

87 tests, 112 assertions, 0 failures, 0 errors
/usr/bin/ruby1.9.1 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
Loaded suite debian/ruby-tests
Started
......................................................................E................
Finished in 0.254055 seconds.

1) Error:
test_utf8(MustacheTest):
ArgumentError: invalid byte sequence in US-ASCII
/tmp/buildd/ruby-mustache-0.99.4/debian/ruby-mustache/usr/lib/ruby/vendor_ruby/mustache/context.rb:31:in `gsub'
/tmp/buildd/ruby-mustache-0.99.4/debian/ruby-mustache/usr/lib/ruby/vendor_ruby/mustache/context.rb:31:in `partial'
/tmp/buildd/ruby-mustache-0.99.4/debian/ruby-mustache/usr/lib/ruby/vendor_ruby/mustache/template.rb:44:in `render'
/tmp/buildd/ruby-mustache-0.99.4/debian/ruby-mustache/usr/lib/ruby/vendor_ruby/mustache/template.rb:43:in `render'
/tmp/buildd/ruby-mustache-0.99.4/debian/ruby-mustache/usr/lib/ruby/vendor_ruby/mustache.rb:119:in `render'
/tmp/buildd/ruby-mustache-0.99.4/test/mustache_test.rb:517:in `test_utf8'

87 tests, 111 assertions, 0 failures, 1 errors, 0 skips

Test run options: --seed 16534
ERROR: Test "ruby1.9.1" failed. Exiting.
dh_auto_install: dh_ruby --install /tmp/buildd/ruby-mustache-0.99.4/debian/ruby-mustache returned exit code 1
make: *** [binary] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
E: Failed autobuilding of package
I: unmounting /var/cache/pbuilder/ccache filesystem
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
-> Cleaning COW directory
forking: rm -rf /var/cache/pbuilder/build//cow.22685
gbp:error: git-pbuilder returned 1
gbp:error: Couldn't run 'git-pbuilder -us -uc'

It seems like one of your test cases is compatible with 1.8, but not with 1.9.