jeudi 13 août 2015

`build': undefined method `new' for Middleware:Module (NoMethodError)

Getting Error while runnging rspec spec/ command in terminal

Following is my logs

/home/dipak/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.17/lib/action_dispatch/middleware/stack.rb:43:in `build': undefined method `new' for Middleware:Module (NoMethodError)

from /home/dipak/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.17/lib/action_dispatch/middleware/stack.rb:113:in `block in build'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.17/lib/action_dispatch/middleware/stack.rb:113:in `each'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.17/lib/action_dispatch/middleware/stack.rb:113:in `inject'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/actionpack-3.2.17/lib/action_dispatch/middleware/stack.rb:113:in `build'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/railties-3.2.17/lib/rails/engine.rb:475:in `app'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/railties-3.2.17/lib/rails/application/finisher.rb:31:in `block in <module:Finisher>'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `instance_exec'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `run_initializers'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/railties-3.2.17/lib/rails/application.rb:136:in `initialize!'
from /home/dipak/.rvm/gems/ruby-2.1.2/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in `method_missing'

Aucun commentaire:

Enregistrer un commentaire