[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rails error when building ruby-haml - no such file to load -- initializer (MissingSourceFile)



Praveen A escreveu isso aí:
> Just did a gem2deb, added rails as dependency (as tests were failing).
> I don't see a rails build dependency in old package and it does not
> run any tests.
> 
> /usr/bin/ruby1.8 -I/usr/lib/ruby/vendor_ruby
> /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
> Running tests for ruby1.8 with test file list from
> debian/ruby-test-files.yaml ...
> /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
> `gem_original_require': no such file to load -- initializer
> (MissingSourceFile)
> 	from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
> 	from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:182:in `require'
> 	from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:547:in
> `new_constants_in'
> 	from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:182:in `require'
> 	from ./test/haml/../linked_rails.rb:19
> 	from ./test/haml/../test_helper.rb:2:in `require'
> 	from ./test/haml/../test_helper.rb:2
> 	from ./test/haml/engine_test.rb:3:in `require'
> 	from ./test/haml/engine_test.rb:3
> 	from -e:1:in `require'
> 	from -e:1
> 	from -e:1:in `each'
> 	from -e:1
> ERROR: Test "ruby1.8" failed. Exiting.
> dh_auto_install: dh_ruby --install
> /tmp/buildd/ruby-haml-3.1.3/debian/ruby-haml returned exit code 1
> make: *** [binary] Error 1
> 
> Any ideas to fix this?

Looking at the source tree, it seems that the tests expect to be run
when haml is installed as a plugin in a rails application. Maybe
upstream can provide some ideas on how to run the tests outside of a
Rails app.

-- 
Antonio Terceiro <terceiro@debian.org>

Attachment: signature.asc
Description: Digital signature


Reply to: