2011-06-08 22 views
7

Estoy tratando de configurar la gema Jasmine como se describe en su sitio web. Después de ejecutar:jasmine setup error rails 3.1 ActiveSupport :: Concern (NameError)

bundle exec jasmine init 

consigo un error:

/Users/sts-158imac/.rvm/gems/[email protected]/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:4:in `<module:Configurable>': uninitialized constant ActiveSupport::Concern (NameError) 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:3:in `<class:Railtie>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:2:in `<module:Rails>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/railties-3.1.0.rc1/lib/rails/railtie/configurable.rb:1:in `<top (required)>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/railties-3.1.0.rc1/lib/rails/railtie.rb:129:in `inherited' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/lib/jasmine/railtie.rb:3:in `<module:Jasmine>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/lib/jasmine/railtie.rb:2:in `<top (required)>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/lib/jasmine.rb:12:in `require' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/lib/jasmine.rb:12:in `<top (required)>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/bin/jasmine:4:in `require' 
from /Users/sts-158imac/.rvm/gems/[email protected]/gems/jasmine-1.0.2.1/bin/jasmine:4:in `<top (required)>' 
from /Users/sts-158imac/.rvm/gems/[email protected]/bin/jasmine:19:in `load' 
from /Users/sts-158imac/.rvm/gems/[email protected]/bin/jasmine:19:in `<main>' 

Respuesta

5

En lugar de tratar de configurar Jamine con bundle exec jasmine init

intentar usar rails g jasmine:install que estará disponible una vez que bundle install después de insertar la gema de jazmín en tu Gemfile `

Cuestiones relacionadas