Skip to content
This repository

Test suite should not depend on git #114

Closed
voxik opened this Issue July 26, 2012 · 1 comment

2 participants

Vít Ondruch Francesco Rodríguez
Vít Ondruch
voxik commented July 26, 2012

The test suite is not possible to run outside of its git repository. This is problem when I try to run it for installed gem. In that case I receive the following error:

/builddir/build/BUILD/rubygem-sass-rails-3.2.5/usr/share/gems/gems/sass-rails-3.2.5/sass-rails.gemspec:21:in ``': No such file or directory - git ls-files (Errno::ENOENT)
    from /builddir/build/BUILD/rubygem-sass-rails-3.2.5/usr/share/gems/gems/sass-rails-3.2.5/sass-rails.gemspec:21:in `block in <main>'
    from /usr/share/rubygems/rubygems/specification.rb:1386:in `initialize'
    from /builddir/build/BUILD/rubygem-sass-rails-3.2.5/usr/share/gems/gems/sass-rails-3.2.5/sass-rails.gemspec:5:in `new'
    from /builddir/build/BUILD/rubygem-sass-rails-3.2.5/usr/share/gems/gems/sass-rails-3.2.5/sass-rails.gemspec:5:in `<main>'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb:280:in `eval'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb:280:in `rescue in block in load_gemspec'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb:275:in `block in load_gemspec'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb:273:in `chdir'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb:273:in `load_gemspec'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler/dsl.rb:39:in `gemspec'
    from /builddir/build/BUILD/rubygem-sass-rails-3.2.5/usr/share/gems/gems/sass-rails-3.2.5/Gemfile:4:in `evaluate'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler/dsl.rb:7:in `instance_eval'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler/dsl.rb:7:in `evaluate'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler/definition.rb:18:in `build'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb:135:in `definition'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb:123:in `load'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler.rb:107:in `setup'
    from /usr/share/gems/gems/bundler-1.1.4/lib/bundler/setup.rb:17:in `<top (required)>'
    from /usr/share/rubygems/rubygems/custom_require.rb:60:in `require'
    from /usr/share/rubygems/rubygems/custom_require.rb:60:in `rescue in require'
    from /usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
    from /builddir/build/BUILD/rubygem-sass-rails-3.2.5/usr/share/gems/gems/sass-rails-3.2.5/test/test_helper.rb:5:in `<top (required)>'
    from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
    from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
    from /builddir/build/BUILD/rubygem-sass-rails-3.2.5/usr/share/gems/gems/sass-rails-3.2.5/test/sass_rails_logger_test.rb:1:in `<top (required)>'
    from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
    from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
    from -e:1:in `block in <main>'
    from -e:1:in `each'
    from -e:1:in `<main>'

I'd like the test suite when packaging your gem for Fedora and this makes it impossible. Thank you.

Francesco Rodríguez
Collaborator

Closing here, it's already fixed by d99f99f

Francesco Rodríguez frodsan closed this April 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.