rstacruz / sinatra-assetpack

Package your assets transparently in Sinatra.
http://ricostacruz.com/sinatra-assetpack/
MIT License
541 stars 97 forks source link

Unable to run tests on fresh clone #89

Closed lukesmith closed 11 years ago

lukesmith commented 11 years ago

I've just forked and cloned the repository, ran bundle install then rake expecting the tests to run and got the following error.

** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
rake aborted!
cannot load such file -- sass
/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/Projects/sinatra-assetpack/test/test_helper.rb:5:in `<top (required)>'
/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
test/arity_test.rb:1:in `<top (required)>'
/Projects/sinatra-assetpack/Rakefile:11:in `load'
/Projects/sinatra-assetpack/Rakefile:11:in `block (2 levels) in <top (required)>'
/Projects/sinatra-assetpack/Rakefile:11:in `each'
/Projects/sinatra-assetpack/Rakefile:11:in `block in <top (required)>'

sass was install using bundle.

Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Using rake (10.0.3) 
Installing Platform (0.4.0) 
Using open4 (1.3.0) 
Installing POpen4 (0.1.4) 
Installing coffee-script-source (1.6.1) 
Installing multi_json (1.7.0) 
Using execjs (1.4.0) 
Using coffee-script (2.2.0) 
Using commonjs (0.2.6) 
Installing contest (0.1.3) 
Installing tilt (1.3.5) 
Installing haml (4.0.0) 
Using jsmin (1.0.1) 
Installing less (2.3.1) 
Installing metaclass (0.0.1) 
Installing mocha (0.13.3) 
Installing rack (1.5.2) 
Installing rack-protection (1.5.0) 
Using rack-test (0.6.2) 
Installing sass (3.2.7) 
Installing sinatra (1.4.1) 
Using sinatra-assetpack (0.1.7) from source at . 
Installing stylus-source (0.31.0) 
Installing stylus (0.7.1) 
Using uglifier (1.3.0) 
Installing yui-compressor (0.9.6) 
Using bundler (1.1.4) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from haml:

HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
your application:

* Support for Ruby 1.8.6 dropped
* Support for Rails 2 dropped
* Sass filter now always outputs <style> tags
* Data attributes are now hyphenated, not underscored
* html2haml utility moved to the html2haml gem
* Textile and Maruku filters moved to the haml-contrib gem

For more info see:

http://rubydoc.info/github/haml/haml/file/CHANGELOG.md
j15e commented 11 years ago

Did you try bundle exec rake also? Might not be loaded if your rake is not bundled ex :

$ which rake
rake: aliased to bundled_rake
j15e commented 11 years ago

Since it works on travis-ci I doubt there is missing dependencies

lukesmith commented 11 years ago

:+1: bundle exec rake solves it. That one always catches me out